Skip to content

Commit 5b7ae36

Browse files
committed
Undo problematic user setting change from
previous commit. Add fix for libraryPageSize 0 that was missed in original commit.
1 parent c3cc872 commit 5b7ae36

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/components/displaySettings/displaySettings.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ <h2 class="sectionTitle">
224224
</h2>
225225

226226
<div class="inputContainer inputContainer-withDescription">
227-
<input is="emby-input" type="number" id="txtLibraryPageSize" pattern="[0-9]*" required="required" min="0" max="10000" step="1" label="${LabelLibraryPageSize}" />
227+
<input is="emby-input" type="number" id="txtLibraryPageSize" pattern="[0-9]*" required="required" min="0" max="1000" step="1" label="${LabelLibraryPageSize}" />
228228
<div class="fieldDescription">${LabelLibraryPageSizeHelp}</div>
229229
</div>
230230

src/controllers/list.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ import LibraryMenu from '../scripts/libraryMenu';
6969
query.IsAiring = false;
7070
}
7171

72+
if (userSettings.libraryPageSize() === 0){
73+
query.Limit = 0;
74+
}
75+
7276
return modifyQueryWithFilters(instance, query);
7377
}
7478

0 commit comments

Comments
 (0)