refactor: change TheSettingsMenu.vue to panel component

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej committed 2021-10-10 12:03:01 +02:00
1 parent 2144888ef8
commit 4803df5d5d
1 file changed
+8 -10
+8 -10
View File
@@ -4,14 +4,10 @@
<v-icon>mdi-cogs</v-icon>
</v-btn>
<v-dialog v-model="showSettings" width="900" persistent :fullscreen="isMobile">
<v-card style="overflow: hidden;" :height="isMobile ? 0 : 548">
<v-toolbar flat dense>
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-cogs</v-icon>{{ $t('Settings.InterfaceSettings') }}</span>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn small class="minwidth-0 px-2" color="grey darken-2" @click="showSettings = false"><v-icon small>mdi-close-thick</v-icon></v-btn>
<template v-if="isMobile" v-slot:extension>
<panel :title="$t('Settings.InterfaceSettings')" icon="mdi-cogs" card-class="settings-menu-dialog" :margin-bottom="false" style="overflow: hidden;" :height="isMobile ? 0 : 548">
<template v-slot:buttons>
<v-btn small class="minwidth-0 px-2" text @click="showSettings = false"><v-icon small>mdi-close-thick</v-icon></v-btn>
<template v-if="isMobile">
<v-tabs v-model="activeTab" :center-active="true" :show-arrows="true">
<v-tab
v-for="(tab, index) of tabTitles" v-bind:key="index"
@@ -22,7 +18,7 @@
</v-tab>
</v-tabs>
</template>
</v-toolbar>
</template>
<v-row>
<v-col class="col-auto pr-0" v-if="!isMobile">
<v-tabs v-model="activeTab" :vertical="true">
@@ -43,7 +39,7 @@
</perfect-scrollbar>
</v-col>
</v-row>
</v-card>
</panel>
</v-dialog>
</div>
</template>
@@ -63,8 +59,10 @@ import SettingsRemotePrintersTab from '@/components/settings/SettingsRemotePrint
import SettingsThemeTab from '@/components/settings/SettingsThemeTab.vue'
import SettingsDashboardTab from '@/components/settings/SettingsDashboardTab.vue'
import SettingsGCodeViewerTab from '@/components/settings/SettingsGCodeViewerTab.vue'
import Panel from '@/components/ui/Panel.vue'
@Component({
components: {
Panel,
SettingsThemeTab,
SettingsRemotePrintersTab,
SettingsPresetsTab,