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!

πŸ”Š Logs reason for config save error

Alicia Sykes106f4abb8183
diff --git a/src/mixins/ConfigSaving.js b/src/mixins/ConfigSaving.js
index 0c862a85..661097b6 100644
--- a/src/mixins/ConfigSaving.js
+++ b/src/mixins/ConfigSaving.js
@@ -48,10 +48,11 @@ export default {
if (this.saveSuccess) {
this.carefullyClearLocalStorage();
this.showToast(this.$t('config-editor.success-msg-disk'), true);
+ InfoHandler('Config has been written to disk successfully', 'Config Update');
} else {
+ ErrorHandler(`Failed to save config. ${this.responseText || 'Unknown error'}`);
this.showToast(this.$t('config-editor.error-msg-cannot-save'), false);
}
- InfoHandler('Config has been written to disk successfully', 'Config Update');
this.progress.end();
this.$store.commit(StoreKeys.SET_EDIT_MODE, false);
return this.saveSuccess;