diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2022-05-17 12:38:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-17 12:38:45 +0300 |
commit | 88158e68efa29d5160607e8a51a1e32454384639 (patch) | |
tree | f6fee5cc04cb8d1a66d723b6359df27f4cb44516 /src | |
parent | 72a69fa22f1ab96b1c9b442420bae1f455036768 (diff) | |
parent | 7394009c57d2e4fa4c61259706631bf1eb4a0e42 (diff) |
Merge pull request #6440 from nextcloud/fix/undo-timeout-dialogs
Change the timeout value to fit the dialogs
Diffstat (limited to 'src')
-rw-r--r-- | src/store/constants.js | 4 | ||||
-rw-r--r-- | src/store/outbox/actions.js | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/store/constants.js b/src/store/constants.js index 7db5d0dd0..639b18455 100644 --- a/src/store/constants.js +++ b/src/store/constants.js @@ -19,8 +19,10 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +import { TOAST_UNDO_TIMEOUT } from '@nextcloud/dialogs' + export const UNIFIED_ACCOUNT_ID = 0 export const UNIFIED_INBOX_ID = 'unified' export const PRIORITY_INBOX_ID = 'priority' export const PAGE_SIZE = 20 -export const UNDO_DELAY = 7 * 1000 +export const UNDO_DELAY = TOAST_UNDO_TIMEOUT diff --git a/src/store/outbox/actions.js b/src/store/outbox/actions.js index ccfd58604..a6623197d 100644 --- a/src/store/outbox/actions.js +++ b/src/store/outbox/actions.js @@ -24,8 +24,8 @@ import * as OutboxService from '../../service/OutboxService' import logger from '../../logger' import { showError, showUndo } from '@nextcloud/dialogs' import { translate as t } from '@nextcloud/l10n' -import { UNDO_DELAY } from '../constants' import { html, plain } from '../../util/text' +import { UNDO_DELAY } from '../constants' export default { async fetchMessages({ getters, commit }) { |