From 80fee92037da37144addbc97045f8c059cbfc78f Mon Sep 17 00:00:00 2001 From: advplyr Date: Fri, 8 Sep 2023 14:28:21 -0500 Subject: [PATCH] Update "disable watcher" server setting to display as "enable watcher" #2055 --- .../components/modals/libraries/LibrarySettings.vue | 10 +++++----- client/pages/config/index.vue | 11 ++++++++--- client/strings/de.json | 5 ++++- client/strings/en-us.json | 3 +++ client/strings/es.json | 3 +++ client/strings/fr.json | 3 +++ client/strings/gu.json | 3 +++ client/strings/hi.json | 3 +++ client/strings/hr.json | 3 +++ client/strings/it.json | 3 +++ client/strings/lt.json | 3 +++ client/strings/nl.json | 3 +++ client/strings/pl.json | 3 +++ client/strings/ru.json | 3 +++ client/strings/zh-cn.json | 3 +++ 15 files changed, 53 insertions(+), 9 deletions(-) diff --git a/client/components/modals/libraries/LibrarySettings.vue b/client/components/modals/libraries/LibrarySettings.vue index 5d91daa6..53eb2650 100644 --- a/client/components/modals/libraries/LibrarySettings.vue +++ b/client/components/modals/libraries/LibrarySettings.vue @@ -11,9 +11,9 @@
- + -

{{ $strings.LabelSettingsDisableWatcherForLibrary }}

+

{{ $strings.LabelSettingsEnableWatcherForLibrary }}

*{{ $strings.MessageWatcherIsDisabledGlobally }}

@@ -65,7 +65,7 @@ export default { return { provider: null, useSquareBookCovers: false, - disableWatcher: false, + enableWatcher: false, skipMatchingMediaWithAsin: false, skipMatchingMediaWithIsbn: false, audiobooksOnly: false, @@ -95,7 +95,7 @@ export default { return { settings: { coverAspectRatio: this.useSquareBookCovers ? this.$constants.BookCoverAspectRatio.SQUARE : this.$constants.BookCoverAspectRatio.STANDARD, - disableWatcher: !!this.disableWatcher, + disableWatcher: !this.enableWatcher, skipMatchingMediaWithAsin: !!this.skipMatchingMediaWithAsin, skipMatchingMediaWithIsbn: !!this.skipMatchingMediaWithIsbn, audiobooksOnly: !!this.audiobooksOnly, @@ -108,7 +108,7 @@ export default { }, init() { this.useSquareBookCovers = this.librarySettings.coverAspectRatio === this.$constants.BookCoverAspectRatio.SQUARE - this.disableWatcher = !!this.librarySettings.disableWatcher + this.enableWatcher = !this.librarySettings.disableWatcher this.skipMatchingMediaWithAsin = !!this.librarySettings.skipMatchingMediaWithAsin this.skipMatchingMediaWithIsbn = !!this.librarySettings.skipMatchingMediaWithIsbn this.audiobooksOnly = !!this.librarySettings.audiobooksOnly diff --git a/client/pages/config/index.vue b/client/pages/config/index.vue index b021c9c7..67391141 100644 --- a/client/pages/config/index.vue +++ b/client/pages/config/index.vue @@ -160,10 +160,10 @@
- - + +

- {{ $strings.LabelSettingsDisableWatcher }} + {{ $strings.LabelSettingsEnableWatcher }} info_outlined

@@ -262,6 +262,7 @@ export default { updatingServerSettings: false, homepageUseBookshelfView: false, useBookshelfView: false, + scannerEnableWatcher: false, isPurgingCache: false, hasPrefixesChanged: false, newServerSettings: {}, @@ -363,6 +364,9 @@ export default { this.updateSettingsKey('metadataFileFormat', val) }, updateSettingsKey(key, val) { + if (key === 'scannerDisableWatcher') { + this.newServerSettings.scannerDisableWatcher = val + } this.updateServerSettings({ [key]: val }) @@ -389,6 +393,7 @@ export default { initServerSettings() { this.newServerSettings = this.serverSettings ? { ...this.serverSettings } : {} this.newServerSettings.sortingPrefixes = [...(this.newServerSettings.sortingPrefixes || [])] + this.scannerEnableWatcher = !this.newServerSettings.scannerDisableWatcher this.homepageUseBookshelfView = this.newServerSettings.homeBookshelfView != this.$constants.BookshelfView.DETAIL this.useBookshelfView = this.newServerSettings.bookshelfView != this.$constants.BookshelfView.DETAIL diff --git a/client/strings/de.json b/client/strings/de.json index cae36e07..8ed43eae 100644 --- a/client/strings/de.json +++ b/client/strings/de.json @@ -398,6 +398,9 @@ "LabelSettingsDisableWatcher": "Überwachung deaktivieren", "LabelSettingsDisableWatcherForLibrary": "Ordnerüberwachung für die Bibliothek deaktivieren", "LabelSettingsDisableWatcherHelp": "Deaktiviert das automatische Hinzufügen/Aktualisieren von Elementen, wenn Dateiänderungen erkannt werden. *Erfordert einen Server-Neustart", + "LabelSettingsEnableWatcher": "Enable Watcher", + "LabelSettingsEnableWatcherForLibrary": "Enable folder watcher for library", + "LabelSettingsEnableWatcherHelp": "Enables the automatic adding/updating of items when file changes are detected. *Requires server restart", "LabelSettingsExperimentalFeatures": "Experimentelle Funktionen", "LabelSettingsExperimentalFeaturesHelp": "Funktionen welche sich in der Entwicklung befinden, benötigen Ihr Feedback und Ihre Hilfe beim Testen. Klicken Sie hier, um die Github-Diskussion zu öffnen.", "LabelSettingsFindCovers": "Suche Titelbilder", @@ -708,4 +711,4 @@ "ToastSocketFailedToConnect": "Verbindung zum WebSocket fehlgeschlagen", "ToastUserDeleteFailed": "Benutzer konnte nicht gelöscht werden", "ToastUserDeleteSuccess": "Benutzer gelöscht" -} +} \ No newline at end of file diff --git a/client/strings/en-us.json b/client/strings/en-us.json index 34151322..75606da2 100644 --- a/client/strings/en-us.json +++ b/client/strings/en-us.json @@ -398,6 +398,9 @@ "LabelSettingsDisableWatcher": "Disable Watcher", "LabelSettingsDisableWatcherForLibrary": "Disable folder watcher for library", "LabelSettingsDisableWatcherHelp": "Disables the automatic adding/updating of items when file changes are detected. *Requires server restart", + "LabelSettingsEnableWatcher": "Enable Watcher", + "LabelSettingsEnableWatcherForLibrary": "Enable folder watcher for library", + "LabelSettingsEnableWatcherHelp": "Enables the automatic adding/updating of items when file changes are detected. *Requires server restart", "LabelSettingsExperimentalFeatures": "Experimental features", "LabelSettingsExperimentalFeaturesHelp": "Features in development that could use your feedback and help testing. Click to open github discussion.", "LabelSettingsFindCovers": "Find covers", diff --git a/client/strings/es.json b/client/strings/es.json index c96f3791..08aafe61 100644 --- a/client/strings/es.json +++ b/client/strings/es.json @@ -398,6 +398,9 @@ "LabelSettingsDisableWatcher": "Deshabilitar Watcher", "LabelSettingsDisableWatcherForLibrary": "Deshabilitar Watcher de Carpetas para esta biblioteca", "LabelSettingsDisableWatcherHelp": "Deshabilitar la función automática de agregar/actualizar los elementos, cuando se detecta cambio en los archivos. *Require Reiniciar el Servidor", + "LabelSettingsEnableWatcher": "Enable Watcher", + "LabelSettingsEnableWatcherForLibrary": "Enable folder watcher for library", + "LabelSettingsEnableWatcherHelp": "Enables the automatic adding/updating of items when file changes are detected. *Requires server restart", "LabelSettingsExperimentalFeatures": "Funciones Experimentales", "LabelSettingsExperimentalFeaturesHelp": "Funciones en desarrollo sobre las que esperamos sus comentarios y experiencia. Haga click aquí para abrir una conversación en Github.", "LabelSettingsFindCovers": "Buscar Portadas", diff --git a/client/strings/fr.json b/client/strings/fr.json index 2ef89df5..230e7348 100644 --- a/client/strings/fr.json +++ b/client/strings/fr.json @@ -398,6 +398,9 @@ "LabelSettingsDisableWatcher": "Désactiver la surveillance", "LabelSettingsDisableWatcherForLibrary": "Désactiver la surveillance des dossiers pour la bibliothèque", "LabelSettingsDisableWatcherHelp": "Désactive la mise à jour automatique lorsque les fichiers changent. *Nécessite un redémarrage*", + "LabelSettingsEnableWatcher": "Enable Watcher", + "LabelSettingsEnableWatcherForLibrary": "Enable folder watcher for library", + "LabelSettingsEnableWatcherHelp": "Enables the automatic adding/updating of items when file changes are detected. *Requires server restart", "LabelSettingsExperimentalFeatures": "Fonctionnalités expérimentales", "LabelSettingsExperimentalFeaturesHelp": "Fonctionnalités en cours de développement sur lesquelles nous attendons votre retour et expérience. Cliquez pour ouvrir la discussion Github.", "LabelSettingsFindCovers": "Chercher des couvertures de livre", diff --git a/client/strings/gu.json b/client/strings/gu.json index b819b775..65884cff 100644 --- a/client/strings/gu.json +++ b/client/strings/gu.json @@ -398,6 +398,9 @@ "LabelSettingsDisableWatcher": "Disable Watcher", "LabelSettingsDisableWatcherForLibrary": "Disable folder watcher for library", "LabelSettingsDisableWatcherHelp": "Disables the automatic adding/updating of items when file changes are detected. *Requires server restart", + "LabelSettingsEnableWatcher": "Enable Watcher", + "LabelSettingsEnableWatcherForLibrary": "Enable folder watcher for library", + "LabelSettingsEnableWatcherHelp": "Enables the automatic adding/updating of items when file changes are detected. *Requires server restart", "LabelSettingsExperimentalFeatures": "Experimental features", "LabelSettingsExperimentalFeaturesHelp": "Features in development that could use your feedback and help testing. Click to open github discussion.", "LabelSettingsFindCovers": "Find covers", diff --git a/client/strings/hi.json b/client/strings/hi.json index af0d02a7..2f5a5234 100644 --- a/client/strings/hi.json +++ b/client/strings/hi.json @@ -398,6 +398,9 @@ "LabelSettingsDisableWatcher": "Disable Watcher", "LabelSettingsDisableWatcherForLibrary": "Disable folder watcher for library", "LabelSettingsDisableWatcherHelp": "Disables the automatic adding/updating of items when file changes are detected. *Requires server restart", + "LabelSettingsEnableWatcher": "Enable Watcher", + "LabelSettingsEnableWatcherForLibrary": "Enable folder watcher for library", + "LabelSettingsEnableWatcherHelp": "Enables the automatic adding/updating of items when file changes are detected. *Requires server restart", "LabelSettingsExperimentalFeatures": "Experimental features", "LabelSettingsExperimentalFeaturesHelp": "Features in development that could use your feedback and help testing. Click to open github discussion.", "LabelSettingsFindCovers": "Find covers", diff --git a/client/strings/hr.json b/client/strings/hr.json index dcca8df8..aa8fc2cc 100644 --- a/client/strings/hr.json +++ b/client/strings/hr.json @@ -398,6 +398,9 @@ "LabelSettingsDisableWatcher": "Isključi Watchera", "LabelSettingsDisableWatcherForLibrary": "Isključi folder watchera za biblioteku", "LabelSettingsDisableWatcherHelp": "Isključi automatsko dodavanje/aktualiziranje stavci ako su promjene prepoznate. *Potreban restart servera", + "LabelSettingsEnableWatcher": "Enable Watcher", + "LabelSettingsEnableWatcherForLibrary": "Enable folder watcher for library", + "LabelSettingsEnableWatcherHelp": "Enables the automatic adding/updating of items when file changes are detected. *Requires server restart", "LabelSettingsExperimentalFeatures": "Eksperimentalni features", "LabelSettingsExperimentalFeaturesHelp": "Features u razvoju trebaju vaš feedback i pomoć pri testiranju. Klikni da odeš to Github discussionsa.", "LabelSettingsFindCovers": "Pronađi covers", diff --git a/client/strings/it.json b/client/strings/it.json index 797495a9..45777f9d 100644 --- a/client/strings/it.json +++ b/client/strings/it.json @@ -398,6 +398,9 @@ "LabelSettingsDisableWatcher": "Disattiva Watcher", "LabelSettingsDisableWatcherForLibrary": "Disattiva Watcher per le librerie", "LabelSettingsDisableWatcherHelp": "Disattiva il controllo automatico libri nelle cartelle delle librerie. *Richiede il Riavvio del Server", + "LabelSettingsEnableWatcher": "Enable Watcher", + "LabelSettingsEnableWatcherForLibrary": "Enable folder watcher for library", + "LabelSettingsEnableWatcherHelp": "Enables the automatic adding/updating of items when file changes are detected. *Requires server restart", "LabelSettingsExperimentalFeatures": "Opzioni Sperimentali", "LabelSettingsExperimentalFeaturesHelp": "Funzionalità in fase di sviluppo che potrebbero utilizzare i tuoi feedback e aiutare i test. Fare clic per aprire la discussione github.", "LabelSettingsFindCovers": "Trova covers", diff --git a/client/strings/lt.json b/client/strings/lt.json index 0bb51a46..14f5b480 100644 --- a/client/strings/lt.json +++ b/client/strings/lt.json @@ -398,6 +398,9 @@ "LabelSettingsDisableWatcher": "Išjungti stebėtoją", "LabelSettingsDisableWatcherForLibrary": "Išjungti aplankų stebėtoją bibliotekai", "LabelSettingsDisableWatcherHelp": "Išjungia automatinį elementų pridėjimą/atnaujinimą, jei pastebėti failų pokyčiai. *Reikalingas serverio paleidimas iš naujo", + "LabelSettingsEnableWatcher": "Enable Watcher", + "LabelSettingsEnableWatcherForLibrary": "Enable folder watcher for library", + "LabelSettingsEnableWatcherHelp": "Enables the automatic adding/updating of items when file changes are detected. *Requires server restart", "LabelSettingsExperimentalFeatures": "Eksperimentiniai funkcionalumai", "LabelSettingsExperimentalFeaturesHelp": "Funkcijos, kurios yra kuriamos ir laukiami jūsų komentarai. Spustelėkite, kad atidarytumėte „GitHub“ diskusiją.", "LabelSettingsFindCovers": "Rasti viršelius", diff --git a/client/strings/nl.json b/client/strings/nl.json index bba0070e..a1b3f3e3 100644 --- a/client/strings/nl.json +++ b/client/strings/nl.json @@ -398,6 +398,9 @@ "LabelSettingsDisableWatcher": "Watcher uitschakelen", "LabelSettingsDisableWatcherForLibrary": "Map-watcher voor bibliotheek uitschakelen", "LabelSettingsDisableWatcherHelp": "Schakelt het automatisch toevoegen/bijwerken van onderdelen wanneer bestandswijzigingen gedetecteerd zijn uit. *Vereist herstart server", + "LabelSettingsEnableWatcher": "Enable Watcher", + "LabelSettingsEnableWatcherForLibrary": "Enable folder watcher for library", + "LabelSettingsEnableWatcherHelp": "Enables the automatic adding/updating of items when file changes are detected. *Requires server restart", "LabelSettingsExperimentalFeatures": "Experimentele functies", "LabelSettingsExperimentalFeaturesHelp": "Functies in ontwikkeling die je feedback en testing kunnen gebruiken. Klik om de Github-discussie te openen.", "LabelSettingsFindCovers": "Zoek covers", diff --git a/client/strings/pl.json b/client/strings/pl.json index c98c33f8..f3b15e64 100644 --- a/client/strings/pl.json +++ b/client/strings/pl.json @@ -398,6 +398,9 @@ "LabelSettingsDisableWatcher": "Wyłącz monitorowanie", "LabelSettingsDisableWatcherForLibrary": "Wyłącz monitorowanie folderów dla biblioteki", "LabelSettingsDisableWatcherHelp": "Wyłącz automatyczne dodawanie/aktualizowanie elementów po wykryciu zmian w plikach. *Wymaga restartu serwera", + "LabelSettingsEnableWatcher": "Enable Watcher", + "LabelSettingsEnableWatcherForLibrary": "Enable folder watcher for library", + "LabelSettingsEnableWatcherHelp": "Enables the automatic adding/updating of items when file changes are detected. *Requires server restart", "LabelSettingsExperimentalFeatures": "Funkcje eksperymentalne", "LabelSettingsExperimentalFeaturesHelp": "Funkcje w trakcie rozwoju, które mogą zyskanć na Twojej opinii i pomocy w testowaniu. Kliknij, aby otworzyć dyskusję na githubie.", "LabelSettingsFindCovers": "Szukanie okładek", diff --git a/client/strings/ru.json b/client/strings/ru.json index 13827930..68319a32 100644 --- a/client/strings/ru.json +++ b/client/strings/ru.json @@ -398,6 +398,9 @@ "LabelSettingsDisableWatcher": "Отключить отслеживание", "LabelSettingsDisableWatcherForLibrary": "Отключить отслеживание для библиотеки", "LabelSettingsDisableWatcherHelp": "Отключает автоматическое добавление/обновление элементов, когда обнаружено изменение файлов. *Требуется перезапуск сервера", + "LabelSettingsEnableWatcher": "Enable Watcher", + "LabelSettingsEnableWatcherForLibrary": "Enable folder watcher for library", + "LabelSettingsEnableWatcherHelp": "Enables the automatic adding/updating of items when file changes are detected. *Requires server restart", "LabelSettingsExperimentalFeatures": "Экспериментальные функции", "LabelSettingsExperimentalFeaturesHelp": "Функционал в разработке на который Вы могли бы дать отзыв или помочь в тестировании. Нажмите для открытия обсуждения на github.", "LabelSettingsFindCovers": "Найти обложки", diff --git a/client/strings/zh-cn.json b/client/strings/zh-cn.json index 9e8c357d..17f1be7e 100644 --- a/client/strings/zh-cn.json +++ b/client/strings/zh-cn.json @@ -398,6 +398,9 @@ "LabelSettingsDisableWatcher": "禁用监视程序", "LabelSettingsDisableWatcherForLibrary": "禁用媒体库的文件夹监视程序", "LabelSettingsDisableWatcherHelp": "检测到文件更改时禁用自动添加和更新项目. *需要重启服务器", + "LabelSettingsEnableWatcher": "Enable Watcher", + "LabelSettingsEnableWatcherForLibrary": "Enable folder watcher for library", + "LabelSettingsEnableWatcherHelp": "Enables the automatic adding/updating of items when file changes are detected. *Requires server restart", "LabelSettingsExperimentalFeatures": "实验功能", "LabelSettingsExperimentalFeaturesHelp": "开发中的功能需要你的反馈并帮助测试. 点击打开 github 讨论.", "LabelSettingsFindCovers": "查找封面",