| 380 | } |
| 381 | |
| 382 | class Toast extends Dialog { |
| 383 | constructor() { |
| 384 | super('toast'); |
| 385 | Events.on('notify-user', e => this._onNotfiy(e.detail)); |
| 386 | } |
| 387 | |
| 388 | _onNotfiy(message) { |
| 389 | this.$el.textContent = message; |
| 390 | this.show(); |
| 391 | setTimeout(_ => this.hide(), 3000); |
| 392 | } |
| 393 | } |
| 394 | |
| 395 | |
| 396 | class Notifications { |
nothing calls this directly
no outgoing calls
no test coverage detected