aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorPytal <24800714+Pytal@users.noreply.github.com>2022-03-03 22:10:01 -0800
committerGitHub <noreply@github.com>2022-03-03 22:10:01 -0800
commitf1604cf7afa8d65a3648b7c7e1e6611920fe5f6f (patch)
treef3ddc6fac97d4acd305279ed7ca58182049e01b7 /apps
parenta6bacaacb3aa74588f5571ca121282a3b69c7c13 (diff)
parentc22cfa057da9857eeb066318c7017542a60793bf (diff)
downloadnextcloud-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.js5
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)
},