mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-28 08:04:46 +02:00
🚩 Adds warning and note for local save
This commit is contained in:
parent
f107dbfc00
commit
7d91d51fa6
@ -144,7 +144,11 @@ export default {
|
|||||||
this.writeConfigToDisk(this.config);
|
this.writeConfigToDisk(this.config);
|
||||||
},
|
},
|
||||||
saveLocally() {
|
saveLocally() {
|
||||||
|
const msg = this.$t('interactive-editor.menu.save-locally-warning');
|
||||||
|
const youSure = confirm(msg); // eslint-disable-line no-alert, no-restricted-globals
|
||||||
|
if (youSure) {
|
||||||
this.saveConfigLocally(this.jsonData);
|
this.saveConfigLocally(this.jsonData);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
/* Convert error messages into readable format for UI */
|
/* Convert error messages into readable format for UI */
|
||||||
validationErrors(errors) {
|
validationErrors(errors) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user