X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/4310d34135243e91fdacd960a825f60f0231621e..refs/pull/5280/head:/resources/js/components/notification.js diff --git a/resources/js/components/notification.js b/resources/js/components/notification.js index 8a0876241..8a1ef922a 100644 --- a/resources/js/components/notification.js +++ b/resources/js/components/notification.js @@ -1,13 +1,13 @@ -import {Component} from "./component"; +import {Component} from './component'; -export class Notification extends Component { +export class Notification extends Component { setup() { this.container = this.$el; this.type = this.$opts.type; this.textElem = this.container.querySelector('span'); this.autoHide = this.$opts.autoHide === 'true'; - this.initialShow = this.$opts.show === 'true' + this.initialShow = this.$opts.show === 'true'; this.container.style.display = 'grid'; window.$events.listen(this.type, text => { @@ -47,4 +47,4 @@ export class Notification extends Component { this.container.removeEventListener('transitionend', this.hideCleanup); } -} \ No newline at end of file +}