diff --git a/src/frontend/app/app.module.ts b/src/frontend/app/app.module.ts index 9ec6ccd0..b979cc28 100644 --- a/src/frontend/app/app.module.ts +++ b/src/frontend/app/app.module.ts @@ -105,6 +105,7 @@ import {SettingsEntryComponent} from './ui/settings/template/settings-entry/sett import {UsersComponent} from './ui/settings/users/users.component'; import {SharingsListComponent} from './ui/settings/sharings-list/sharings-list.component'; import {ThemeService} from './model/theme.service'; +import {StringifyConfigPriority} from './pipes/StringifyConfigPriority'; @Injectable() export class MyHammerConfig extends HammerGestureConfig { @@ -235,6 +236,7 @@ Marker.prototype.options.icon = iconDefault; GPXFilesFilterPipe, MDFilesFilterPipe, StringifySearchQuery, + StringifyConfigPriority, FileDTOToPathPipe, PhotoFilterPipe, UsersComponent, diff --git a/src/frontend/app/pipes/StringifyConfigPriority.ts b/src/frontend/app/pipes/StringifyConfigPriority.ts new file mode 100644 index 00000000..44f7d92c --- /dev/null +++ b/src/frontend/app/pipes/StringifyConfigPriority.ts @@ -0,0 +1,13 @@ +import { Pipe, PipeTransform } from '@angular/core'; +import { ConfigPriority } from '../../../common/config/public/ClientConfig'; +import { SortingMethods } from '../../../common/entities/SortingMethods'; +import {EnumTranslations} from '../ui/EnumTranslations'; + +@Pipe({ name: 'stringifyConfigPriority' }) +export class StringifyConfigPriority implements PipeTransform { + + transform(method: ConfigPriority): string { + return EnumTranslations[ConfigPriority[method]]; + } +} + diff --git a/src/frontend/app/ui/admin/admin.component.html b/src/frontend/app/ui/admin/admin.component.html index fc376309..d8906932 100644 --- a/src/frontend/app/ui/admin/admin.component.html +++ b/src/frontend/app/ui/admin/admin.component.html @@ -48,18 +48,24 @@
{{[savedSearchDTO] | json}}
+ {{[savedSearchDTO] | json}}
This saved search will be loaded from file during gallery indexing and it will survive a database reset.