mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
Increasing max items per search result (also adding it to the UI)
This commit is contained in:
parent
491400523e
commit
b4e831c8d6
@ -28,7 +28,7 @@ export class ClientSearchConfig {
|
|||||||
@ConfigProperty()
|
@ConfigProperty()
|
||||||
AutoComplete: AutoCompleteConfig = new AutoCompleteConfig();
|
AutoComplete: AutoCompleteConfig = new AutoCompleteConfig();
|
||||||
@ConfigProperty({type: 'unsignedInt'})
|
@ConfigProperty({type: 'unsignedInt'})
|
||||||
maxMediaResult: number = 2000;
|
maxMediaResult: number = 10000;
|
||||||
@ConfigProperty({type: 'unsignedInt'})
|
@ConfigProperty({type: 'unsignedInt'})
|
||||||
maxDirectoryResult: number = 200;
|
maxDirectoryResult: number = 200;
|
||||||
}
|
}
|
||||||
|
@ -36,14 +36,17 @@
|
|||||||
</app-settings-entry>
|
</app-settings-entry>
|
||||||
|
|
||||||
<app-settings-entry
|
<app-settings-entry
|
||||||
name="Instant search"
|
name="Maximum media result"
|
||||||
description="Enables showing search results, while typing search query."
|
description="Maximum number of photos and videos that listed in one search reasult"
|
||||||
i18n-description i18n-name
|
i18n-description i18n-name
|
||||||
[ngModel]="states.instantSearchEnabled">
|
[ngModel]="states.maxMediaResult"
|
||||||
|
[simplifiedMode]="simplifiedMode"
|
||||||
|
required="true">
|
||||||
</app-settings-entry>
|
</app-settings-entry>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<div class="panel-info" *ngIf="(!states.enabled.value && !settingsService.isSupported())" i18n>
|
<div class="panel-info" *ngIf="(!states.enabled.value && !settingsService.isSupported())" i18n>
|
||||||
Search is not supported with these settings
|
Search is not supported with these settings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user