fix: add hideTimelapse setting to console settings tab
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
2 files changed
+15
No files matched your search
@@ -21,6 +21,12 @@
|
||||
<settings-row :title="$t('Settings.ConsoleTab.HideTemperatures')" :dynamic-slot-width="true">
|
||||
<v-switch v-model="hideWaitTemperatures" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<template v-if="moonrakerComponents.includes('timelapse')">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.ConsoleTab.HideTimelapse')" :dynamic-slot-width="true">
|
||||
<v-switch v-model="hideTimelapse" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
</template>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<div v-for="(filter, index) in consoleFilters" v-bind:key="index">
|
||||
<v-divider class="my-2" v-if="index"></v-divider>
|
||||
@@ -183,6 +189,14 @@ export default class SettingsConsoleTab extends Mixins(BaseMixin) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'console.hideWaitTemperatures', value: newVal })
|
||||
}
|
||||
|
||||
get hideTimelapse() {
|
||||
return this.$store.state.gui.console.hideTimelapse
|
||||
}
|
||||
|
||||
set hideTimelapse(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'console.hideTimelapse', value: newVal })
|
||||
}
|
||||
|
||||
existsPresetName(name: string) {
|
||||
return (this.consoleFilters.findIndex((filter: any) => filter.name === name && filter.id !== this.form.id) >= 0)
|
||||
}
|
||||
|
||||
@@ -766,6 +766,7 @@
|
||||
"DirectionShell": "Last entry at the bottom",
|
||||
"Height": "Height",
|
||||
"HideTemperatures": "Hide temperatures",
|
||||
"HideTimelapse": "Hide Timelapse",
|
||||
"CreateHeadline": "Create filter",
|
||||
"Name": "Name",
|
||||
"Regex": "Regex",
|
||||
|
||||
Reference in new issue
Block a user