Skip to content

Commit 4c57ac8

Browse files
Pytalnextcloud-command
authored andcommitted
Fix error message timeout
Signed-off-by: Christopher Ng <[email protected]> Signed-off-by: nextcloud-command <[email protected]>
1 parent 22a9c54 commit 4c57ac8

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

apps/settings/src/store/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import users from './users'
2727
import apps from './apps'
2828
import settings from './settings'
2929
import oc from './oc'
30+
import { TOAST_DEFAULT_TIMEOUT } from '@nextcloud/dialogs'
3031

3132
Vue.use(Vuex)
3233

@@ -36,7 +37,7 @@ const mutations = {
3637
API_FAILURE(state, error) {
3738
try {
3839
const message = error.error.response.data.ocs.meta.message
39-
OC.Notification.showHtml(t('settings', 'An error occured during the request. Unable to proceed.') + '<br>' + message, { timeout: 7 })
40+
OC.Notification.showHtml(t('settings', 'An error occured during the request. Unable to proceed.') + '<br>' + message, { timeout: TOAST_DEFAULT_TIMEOUT })
4041
} catch (e) {
4142
OC.Notification.showTemporary(t('settings', 'An error occured during the request. Unable to proceed.'))
4243
}

0 commit comments

Comments
 (0)