diff options
author | npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> | 2020-10-21 14:49:18 +0000 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-10-28 10:28:19 +0100 |
commit | 34100f17754da189f288fc8a7ae3910c254d1028 (patch) | |
tree | a4ba2c31de6b6ac8dbbd9d11311eabbefadb3330 /core/src | |
parent | 72aeb8ef05e3d2b1cf63c659648ad8659474903b (diff) | |
download | nextcloud-server-34100f17754da189f288fc8a7ae3910c254d1028.tar.gz nextcloud-server-34100f17754da189f288fc8a7ae3910c254d1028.zip |
Compile assets
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/OC/notification.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/src/OC/notification.js b/core/src/OC/notification.js index 6207331150f..adac95f1d37 100644 --- a/core/src/OC/notification.js +++ b/core/src/OC/notification.js @@ -21,7 +21,7 @@ import _ from 'underscore' import $ from 'jquery' -import { showMessage } from '@nextcloud/dialogs' +import { showMessage, TOAST_DEFAULT_TIMEOUT, TOAST_PERMANENT_TIMEOUT } from '@nextcloud/dialogs' /** * @todo Write documentation @@ -98,7 +98,7 @@ export default { showHtml(html, options) { options = options || {} options.isHTML = true - options.timeout = (!options.timeout) ? -1 : options.timeout + options.timeout = (!options.timeout) ? TOAST_PERMANENT_TIMEOUT : options.timeout const toast = showMessage(html, options) toast.toastElement.toastify = toast return $(toast.toastElement) @@ -116,7 +116,7 @@ export default { */ show(text, options) { options = options || {} - options.timeout = (!options.timeout) ? -1 : options.timeout + options.timeout = (!options.timeout) ? TOAST_PERMANENT_TIMEOUT : options.timeout const toast = showMessage(text, options) toast.toastElement.toastify = toast return $(toast.toastElement) @@ -133,7 +133,7 @@ export default { if (this.updatableNotification) { this.updatableNotification.hideToast() } - this.updatableNotification = showMessage(text, { timeout: -1 }) + this.updatableNotification = showMessage(text, { timeout: TOAST_PERMANENT_TIMEOUT }) this.updatableNotification.toastElement.toastify = this.updatableNotification return $(this.updatableNotification.toastElement) }, @@ -152,7 +152,7 @@ export default { */ showTemporary(text, options) { options = options || {} - options.timeout = options.timeout || 7 + options.timeout = options.timeout || TOAST_DEFAULT_TIMEOUT const toast = showMessage(text, options) toast.toastElement.toastify = toast return $(toast.toastElement) |