mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-23 21:55:30 +02:00
Launch backup sync menu from config menu
This commit is contained in:
parent
4104dd119f
commit
a632634218
@ -27,16 +27,13 @@ import IconSpanner from '@/assets/interface-icons/config-editor.svg';
|
|||||||
import IconCloud from '@/assets/interface-icons/cloud-backup-restore.svg';
|
import IconCloud from '@/assets/interface-icons/cloud-backup-restore.svg';
|
||||||
import ConfigContainer from '@/components/Configuration/ConfigContainer';
|
import ConfigContainer from '@/components/Configuration/ConfigContainer';
|
||||||
import CloudBackupRestore from '@/components/Configuration/CloudBackupRestore';
|
import CloudBackupRestore from '@/components/Configuration/CloudBackupRestore';
|
||||||
import { topLevelConfKeys, localStorageKeys } from '@/utils/defaults';
|
import { topLevelConfKeys, localStorageKeys, modalNames } from '@/utils/defaults';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ConfigLauncher',
|
name: 'ConfigLauncher',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
modalNames: {
|
modalNames,
|
||||||
CONF_EDITOR: 'CONF_EDITOR',
|
|
||||||
CLOUD_BACKUP: 'CLOUD_BACKUP',
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@ -52,11 +49,11 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
showEditor: function show() {
|
showEditor: function show() {
|
||||||
this.$modal.show(this.modalNames.CONF_EDITOR);
|
this.$modal.show(modalNames.CONF_EDITOR);
|
||||||
this.$emit('modalChanged', true);
|
this.$emit('modalChanged', true);
|
||||||
},
|
},
|
||||||
showCloudModal: function show() {
|
showCloudModal: function show() {
|
||||||
this.$modal.show(this.modalNames.CLOUD_BACKUP);
|
this.$modal.show(modalNames.CLOUD_BACKUP);
|
||||||
this.$emit('modalChanged', true);
|
this.$emit('modalChanged', true);
|
||||||
},
|
},
|
||||||
combineConfig() {
|
combineConfig() {
|
||||||
|
@ -50,6 +50,10 @@ module.exports = {
|
|||||||
BACKUP_ID: 'backupId',
|
BACKUP_ID: 'backupId',
|
||||||
BACKUP_HASH: 'backupHash',
|
BACKUP_HASH: 'backupHash',
|
||||||
},
|
},
|
||||||
|
modalNames: {
|
||||||
|
CONF_EDITOR: 'CONF_EDITOR',
|
||||||
|
CLOUD_BACKUP: 'CLOUD_BACKUP',
|
||||||
|
},
|
||||||
topLevelConfKeys: {
|
topLevelConfKeys: {
|
||||||
PAGE_INFO: 'pageInfo',
|
PAGE_INFO: 'pageInfo',
|
||||||
APP_CONFIG: 'appConfig',
|
APP_CONFIG: 'appConfig',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user