Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:fire: Removes edit raw conf button from Save menu (#325)

Alicia Sykes3f7b50512f6a
diff --git a/src/components/InteractiveEditor/EditModeSaveMenu.vue b/src/components/InteractiveEditor/EditModeSaveMenu.vue
index 4ba1c716..f71a9f52 100644
--- a/src/components/InteractiveEditor/EditModeSaveMenu.vue
+++ b/src/components/InteractiveEditor/EditModeSaveMenu.vue
@@ -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 };
},