aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/OCP/toast.js
diff options
context:
space:
mode:
authordependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>2019-11-13 12:05:10 +0000
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-12-19 11:55:33 +0100
commitec01e0a790448fff38364f629a4de4edb5d465bf (patch)
tree8fb5369e3d6f9f805025802e12feaa4dfaef1e03 /core/src/OCP/toast.js
parent5d9fd7ba0cced84f1d07627b0860ac5490de164d (diff)
downloadnextcloud-server-ec01e0a790448fff38364f629a4de4edb5d465bf.tar.gz
nextcloud-server-ec01e0a790448fff38364f629a4de4edb5d465bf.zip
Bump eslint-config-nextcloud from 0.0.6 to 0.1.0
Bumps [eslint-config-nextcloud](https://github.com/nextcloud/eslint-config-nextcloud) from 0.0.6 to 0.1.0. - [Release notes](https://github.com/nextcloud/eslint-config-nextcloud/releases) - [Commits](https://github.com/nextcloud/eslint-config-nextcloud/compare/v0.0.6...v0.1.0) Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src/OCP/toast.js')
-rw-r--r--core/src/OCP/toast.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/OCP/toast.js b/core/src/OCP/toast.js
index 58f98d93480..6bb3b130287 100644
--- a/core/src/OCP/toast.js
+++ b/core/src/OCP/toast.js
@@ -27,7 +27,7 @@ const TOAST_TYPE_CLASES = {
info: 'toast-info',
warning: 'toast-warning',
success: 'toast-success',
- permanent: 'permanent'
+ permanent: 'permanent',
}
const Toast = {
@@ -59,7 +59,7 @@ const Toast = {
isHTML: false,
type: undefined,
close: true,
- callback: () => {}
+ callback: () => {},
})
if (!options.isHTML) {
text = $('<div/>').text(text).html()
@@ -78,12 +78,12 @@ const Toast = {
selector: !window.TESTING ? 'content' : 'testArea',
positionLeft: false,
backgroundColor: '',
- className: 'toast ' + classes
+ className: 'toast ' + classes,
})
toast.showToast()
// add toastify object to the element for reference in legacy OC.Notification
toast.toastElement.toastify = toast
return toast
- }
+ },
}
export default Toast