diff --git a/src/common/config/public/ClientConfig.ts b/src/common/config/public/ClientConfig.ts index 723a097a..4456aa49 100644 --- a/src/common/config/public/ClientConfig.ts +++ b/src/common/config/public/ClientConfig.ts @@ -129,6 +129,8 @@ export class ClientOtherConfig { captionFirstNaming: boolean = false; // shows the caption instead of the filename in the photo grid @ConfigProperty() enableDownloadZip: boolean = false; + @ConfigProperty({description: 'Adds a button to flattens the file structure, by listing the content of all subdirectories.'}) + enableDirectoryFlattening: boolean = false; } @SubConfigClass() diff --git a/src/frontend/app/ui/gallery/navigator/navigator.gallery.component.html b/src/frontend/app/ui/gallery/navigator/navigator.gallery.component.html index db19a4bb..721bf5f2 100644 --- a/src/frontend/app/ui/gallery/navigator/navigator.gallery.component.html +++ b/src/frontend/app/ui/gallery/navigator/navigator.gallery.component.html @@ -23,14 +23,23 @@ -
 
+ + + + + +
 
+
{{description}} + {{linkText || link}} diff --git a/src/frontend/app/ui/settings/_abstract/settings-entry/settings-entry.component.ts b/src/frontend/app/ui/settings/_abstract/settings-entry/settings-entry.component.ts index 1e94bc33..060ad06d 100644 --- a/src/frontend/app/ui/settings/_abstract/settings-entry/settings-entry.component.ts +++ b/src/frontend/app/ui/settings/_abstract/settings-entry/settings-entry.component.ts @@ -48,6 +48,8 @@ export class SettingsEntryComponent implements ControlValueAccessor, Validator, @Input() simplifiedMode = false; @Input() allowSpaces = false; @Input() description: string; + @Input() link: string; + @Input() linkText: string; @Input() typeOverride: 'searchQuery'; state: IState; isNumberArray = false; diff --git a/src/frontend/app/ui/settings/other/other.settings.component.html b/src/frontend/app/ui/settings/other/other.settings.component.html index 1328a1b1..98db415c 100644 --- a/src/frontend/app/ui/settings/other/other.settings.component.html +++ b/src/frontend/app/ui/settings/other/other.settings.component.html @@ -62,11 +62,20 @@ + + +