diff options
author | greta <gretadoci@gmail.com> | 2022-05-13 11:43:01 +0300 |
---|---|---|
committer | greta <gretadoci@gmail.com> | 2022-05-17 11:33:45 +0300 |
commit | 7394009c57d2e4fa4c61259706631bf1eb4a0e42 (patch) | |
tree | c94045b31cfbddbc2239382e538f87645dfcf367 /src | |
parent | c8148e64d320f2d16b00c5ccde6133f3164892cb (diff) |
Change the timeout value to fit the dialogs
Signed-off-by: greta <gretadoci@gmail.com>
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 }) { |