bugfix: remove 'show on dashboard' option in settings > webcam

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej 2021-08-03 21:18:11 +02:00
parent 29f41b029a
commit 4832fa09eb
4 changed files with 1 additions and 12 deletions

View File

@ -2,10 +2,6 @@
<div>
<v-card flat v-if="!form.bool">
<v-card-text>
<settings-row :title="$t('Settings.WebcamTab.ShowOnDashboard')">
<v-switch v-model="boolDashboard" hide-details class="mt-0"></v-switch>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.WebcamTab.ShowInNavigation')">
<v-switch v-model="boolNavi" hide-details class="mt-0"></v-switch>
</settings-row>

View File

@ -475,7 +475,6 @@
},
"WebcamTab": {
"Webcams": "Webcams",
"ShowOnDashboard": "Show on dashboard",
"ShowInNavigation": "Show in navigation",
"AddWebcam": "add webcam",
"CreateWebcam": "Create Webcam",

View File

@ -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",

View File

@ -228,11 +228,6 @@ export const getters: GetterTree<FarmPrinterState, any> = {
},
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 ?? []
}
}