Skip to content

Commit

Permalink
Fix apps error message timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Feb 25, 2022
1 parent 22a9c54 commit 0174146
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/settings/src/store/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import api from './api'
import Vue from 'vue'
import { generateUrl } from '@nextcloud/router'
import { showError, showInfo } from '@nextcloud/dialogs'
import { showError, showInfo, TOAST_DEFAULT_TIMEOUT } from '@nextcloud/dialogs'
import '@nextcloud/dialogs/styles/toast.scss'

const state = {
Expand All @@ -39,7 +39,7 @@ const state = {
const mutations = {

APPS_API_FAILURE(state, error) {
showError(t('settings', 'An error occured during the request. Unable to proceed.') + '<br>' + error.error.response.data.data.message, { timeout: 7, isHTML: true })
showError(t('settings', 'An error occured during the request. Unable to proceed.') + '<br>' + error.error.response.data.data.message, { timeout: TOAST_DEFAULT_TIMEOUT, isHTML: true })
console.error(state, error)
},

Expand Down

0 comments on commit 0174146

Please sign in to comment.