diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-03-04 04:46:30 +0000 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2022-03-04 04:56:48 +0000 |
commit | c22cfa057da9857eeb066318c7017542a60793bf (patch) | |
tree | f3ddc6fac97d4acd305279ed7ca58182049e01b7 /apps/settings/src | |
parent | a6bacaacb3aa74588f5571ca121282a3b69c7c13 (diff) | |
download | nextcloud-server-c22cfa057da9857eeb066318c7017542a60793bf.tar.gz nextcloud-server-c22cfa057da9857eeb066318c7017542a60793bf.zip |
Fix settings error message timeout
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/settings/src')
-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) }, |