Skip to content

Commit

Permalink
Increasing max items per search result (also adding it to the UI)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpatrik committed May 2, 2021
1 parent 4914005 commit b4e831c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/common/config/public/ClientConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class ClientSearchConfig {
@ConfigProperty()
AutoComplete: AutoCompleteConfig = new AutoCompleteConfig();
@ConfigProperty({type: 'unsignedInt'})
maxMediaResult: number = 2000;
maxMediaResult: number = 10000;
@ConfigProperty({type: 'unsignedInt'})
maxDirectoryResult: number = 200;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,17 @@ <h5 class="card-header">
</app-settings-entry>

<app-settings-entry
name="Instant search"
description="Enables showing search results, while typing search query."
name="Maximum media result"
description="Maximum number of photos and videos that listed in one search reasult"
i18n-description i18n-name
[ngModel]="states.instantSearchEnabled">
[ngModel]="states.maxMediaResult"
[simplifiedMode]="simplifiedMode"
required="true">
</app-settings-entry>




</ng-container>
<div class="panel-info" *ngIf="(!states.enabled.value && !settingsService.isSupported())" i18n>
Search is not supported with these settings
Expand Down

0 comments on commit b4e831c

Please sign in to comment.