From 4832fa09ebf39c48c6dc2a1bd7d0c96985e9de10 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Tue, 3 Aug 2021 21:18:11 +0200 Subject: [PATCH] bugfix: remove 'show on dashboard' option in settings > webcam Signed-off-by: Stefan Dej --- src/components/settings/SettingsWebcamTab.vue | 4 ---- src/locales/en.json | 1 - src/locales/fr.json | 1 - src/store/farm/printer/getters.ts | 7 +------ 4 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/components/settings/SettingsWebcamTab.vue b/src/components/settings/SettingsWebcamTab.vue index 114f880f..530ce60a 100644 --- a/src/components/settings/SettingsWebcamTab.vue +++ b/src/components/settings/SettingsWebcamTab.vue @@ -2,10 +2,6 @@
- - - - diff --git a/src/locales/en.json b/src/locales/en.json index 9fbaa3d3..30299f7c 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -475,7 +475,6 @@ }, "WebcamTab": { "Webcams": "Webcams", - "ShowOnDashboard": "Show on dashboard", "ShowInNavigation": "Show in navigation", "AddWebcam": "add webcam", "CreateWebcam": "Create Webcam", diff --git a/src/locales/fr.json b/src/locales/fr.json index f791a9eb..78c68d37 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -454,7 +454,6 @@ "SaveWebcam": "sauvegarde caméra", "Service": "Service", "ShowInNavigation": "Afficher dans la navigation", - "ShowOnDashboard": "Afficher dans l'écran principal", "TargetFPS": "IPS destination", "UpdateWebcam": "Mise à jour Caméra", "UrlNotAvailable": "URL non disponible", diff --git a/src/store/farm/printer/getters.ts b/src/store/farm/printer/getters.ts index 07c72e00..bcc60a6e 100644 --- a/src/store/farm/printer/getters.ts +++ b/src/store/farm/printer/getters.ts @@ -228,11 +228,6 @@ export const getters: GetterTree = { }, getPrinterWebcams: (state) => { - if ( - state.data.gui.webcam?.configs?.length && - (state.data.gui.webcam.boolDashboard || state.data.gui.webcam.boolNavi) - ) return state.data.gui.webcam.configs - - return [] + return state.data.gui.webcam.configs ?? [] } } \ No newline at end of file