diff options
author | Pytal <24800714+Pytal@users.noreply.github.com> | 2022-03-03 22:10:01 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-03 22:10:01 -0800 |
commit | f1604cf7afa8d65a3648b7c7e1e6611920fe5f6f (patch) | |
tree | f3ddc6fac97d4acd305279ed7ca58182049e01b7 /apps | |
parent | a6bacaacb3aa74588f5571ca121282a3b69c7c13 (diff) | |
parent | c22cfa057da9857eeb066318c7017542a60793bf (diff) | |
download | nextcloud-server-f1604cf7afa8d65a3648b7c7e1e6611920fe5f6f.tar.gz nextcloud-server-f1604cf7afa8d65a3648b7c7e1e6611920fe5f6f.zip |
Merge pull request #31358 from nextcloud/fix/error-message-timeout
Diffstat (limited to 'apps')
-rw-r--r-- | apps/settings/src/store/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/settings/src/store/index.js b/apps/settings/src/store/index.js index f30e114b6d0..9d8733d430e 100644 --- a/apps/settings/src/store/index.js +++ b/apps/settings/src/store/index.js @@ -27,6 +27,7 @@ import users from './users' import apps from './apps' import settings from './settings' import oc from './oc' +import { showError } from '@nextcloud/dialogs' Vue.use(Vuex) @@ -36,9 +37,9 @@ const mutations = { API_FAILURE(state, error) { try { const 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 }) + showError(t('settings', 'An error occured during the request. Unable to proceed.') + '<br>' + message, { isHTML: true }) } catch (e) { - OC.Notification.showTemporary(t('settings', 'An error occured during the request. Unable to proceed.')) + showError(t('settings', 'An error occured during the request. Unable to proceed.')) } console.error(state, error) }, |