diff options
author | Joas Schilling <coding@schilljs.com> | 2020-10-12 11:54:33 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-10-12 11:54:33 +0300 |
commit | 4212258b13a73e492e73e4fd1cb1e6c253eb31fb (patch) | |
tree | 8ed20085c6b970ff89244c20800f64a57a86d90c /src/mixins | |
parent | a9a84655b5c4c0975a56ead9c2e426abdbfcae02 (diff) |
Use defined constants
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/mixins')
-rw-r--r-- | src/mixins/browserCheck.js | 4 | ||||
-rw-r--r-- | src/mixins/talkHashCheck.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mixins/browserCheck.js b/src/mixins/browserCheck.js index d5b00d1c0..b8bd41bb6 100644 --- a/src/mixins/browserCheck.js +++ b/src/mixins/browserCheck.js @@ -20,7 +20,7 @@ * */ -import { showError } from '@nextcloud/dialogs' +import { showError, TOAST_PERMANENT_TIMEOUT } from '@nextcloud/dialogs' import UAParser from 'ua-parser-js' const browserCheck = { @@ -31,7 +31,7 @@ const browserCheck = { showError( this.unsupportedWarning, { - timeout: -1, + timeout: TOAST_PERMANENT_TIMEOUT, }) } }, diff --git a/src/mixins/talkHashCheck.js b/src/mixins/talkHashCheck.js index 71bde1860..d2a9fcb3b 100644 --- a/src/mixins/talkHashCheck.js +++ b/src/mixins/talkHashCheck.js @@ -20,7 +20,7 @@ * */ -import { showError } from '@nextcloud/dialogs' +import { showError, TOAST_PERMANENT_TIMEOUT } from '@nextcloud/dialogs' const talkHashCheck = { data() { @@ -51,7 +51,7 @@ const talkHashCheck = { this.reloadWarningShown = true showError(t('spreed', 'Nextcloud Talk was updated, please reload the page'), { - timeout: -1, + timeout: TOAST_PERMANENT_TIMEOUT, }) }, }, |