summaryrefslogtreecommitdiffstats
path: root/settings/src/store/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/src/store/index.js')
-rw-r--r--settings/src/store/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/src/store/index.js b/settings/src/store/index.js
index aa64b245396..2bd8d76e41b 100644
--- a/settings/src/store/index.js
+++ b/settings/src/store/index.js
@@ -12,10 +12,10 @@ const mutations = {
API_FAILURE(state, error) {
try {
let message = error.error.response.data.ocs.meta.message;
+ OC.Notification.showHtml(t('settings','An error occured during the request. Unable to proceed.')+'<br>'+message, {timeout: 7});
} catch(e) {
- let message = error;
+ OC.Notification.showTemporary(t('settings','An error occured during the request. Unable to proceed.'));
}
- OC.Notification.showHtml(t('settings','An error occured during the request. Unable to proceed.')+'<br>'+message, {timeout: 7});
console.log(state, error);
}
};