summaryrefslogtreecommitdiffstats
path: root/apps/settings/src/store
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-03-04 04:46:30 +0000
committernextcloud-command <nextcloud-command@users.noreply.github.com>2022-03-04 18:19:52 +0000
commit065826c34c84b143882d53c4fd09b0fef7e33d7e (patch)
tree9753c4b1cda9cdd03b012d4e61ddff466f12c186 /apps/settings/src/store
parentdb1e19129c6d6dc0e15b3e043654e2225d85677f (diff)
downloadnextcloud-server-065826c34c84b143882d53c4fd09b0fef7e33d7e.tar.gz
nextcloud-server-065826c34c84b143882d53c4fd09b0fef7e33d7e.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> (cherry picked from commit c22cfa057da9857eeb066318c7017542a60793bf) Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/settings/src/store')
-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 9f4313413eb..7e9babf60e0 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)
},