mirror of
https://github.com/Lissy93/dashy.git
synced 2024-11-24 05:56:49 +03:00
🔥 Removes edit raw conf button from Save menu (#325)
This commit is contained in:
parent
fb73f0e154
commit
3f7b50512f
@ -37,20 +37,6 @@
|
||||
{{ $t('interactive-editor.menu.export-config-btn') }}
|
||||
<ExportIcon />
|
||||
</Button>
|
||||
<Button
|
||||
:click="openCloudBackupMenu"
|
||||
v-tooltip="tooltip($t('interactive-editor.menu.cloud-backup-tooltip'))"
|
||||
>
|
||||
{{ $t('interactive-editor.menu.cloud-backup-btn') }}
|
||||
<CloudBackupIcon />
|
||||
</Button>
|
||||
<Button
|
||||
:click="openRawConfigEditor"
|
||||
v-tooltip="tooltip($t('interactive-editor.menu.edit-raw-config-tooltip'))"
|
||||
>
|
||||
{{ $t('interactive-editor.menu.edit-raw-config-btn') }}
|
||||
<EditRawIcon />
|
||||
</Button>
|
||||
<Button
|
||||
:click="reset"
|
||||
v-tooltip="tooltip($t('interactive-editor.menu.cancel-changes-tooltip'))"
|
||||
@ -104,8 +90,6 @@ import ExportIcon from '@/assets/interface-icons/interactive-editor-export-chang
|
||||
import CancelIcon from '@/assets/interface-icons/interactive-editor-cancel-changes.svg';
|
||||
import AppConfigIcon from '@/assets/interface-icons/interactive-editor-app-config.svg';
|
||||
import PageInfoIcon from '@/assets/interface-icons/interactive-editor-page-info.svg';
|
||||
import CloudBackupIcon from '@/assets/interface-icons/cloud-backup-restore.svg';
|
||||
import EditRawIcon from '@/assets/interface-icons/config-edit-json.svg';
|
||||
|
||||
export default {
|
||||
name: 'EditModeSaveMenu',
|
||||
@ -119,8 +103,6 @@ export default {
|
||||
AppConfigIcon,
|
||||
PageInfoIcon,
|
||||
EditAppConfig,
|
||||
CloudBackupIcon,
|
||||
EditRawIcon,
|
||||
},
|
||||
computed: {
|
||||
config() {
|
||||
@ -155,16 +137,6 @@ export default {
|
||||
this.$modal.show(modalNames.EDIT_APP_CONFIG);
|
||||
this.$store.commit(StoreKeys.SET_MODAL_OPEN, true);
|
||||
},
|
||||
openCloudBackupMenu() {
|
||||
this.$store.commit(StoreKeys.CONF_MENU_INDEX, 2);
|
||||
this.$store.commit(StoreKeys.SET_MODAL_OPEN, true);
|
||||
this.$modal.show(modalNames.CONF_EDITOR);
|
||||
},
|
||||
openRawConfigEditor() {
|
||||
this.$store.commit(StoreKeys.CONF_MENU_INDEX, 1);
|
||||
this.$store.commit(StoreKeys.SET_MODAL_OPEN, true);
|
||||
this.$modal.show(modalNames.CONF_EDITOR);
|
||||
},
|
||||
tooltip(content) {
|
||||
return { content, trigger: 'hover focus', delay: 250 };
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user