Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authornpmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>2020-10-21 17:49:18 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-10-28 12:28:19 +0300
commit34100f17754da189f288fc8a7ae3910c254d1028 (patch)
treea4ba2c31de6b6ac8dbbd9d11311eabbefadb3330 /core/src
parent72aeb8ef05e3d2b1cf63c659648ad8659474903b (diff)
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.js10
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)