@zywave/notes-widget
Advanced tools
Comparing version 1.2.0-PW-896-Fix-Client.11 to 1.2.0-PW-896-Fix-Client.12
@@ -13,3 +13,2 @@ import { LitElement } from 'lit'; | ||
private _addNoteDialog; | ||
private _shell; | ||
private _loadNotesTask; | ||
@@ -16,0 +15,0 @@ private _notes; |
@@ -35,4 +35,4 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
this.showNotification = (type, header, message) => { | ||
var _a; | ||
(_a = this._shell) === null || _a === void 0 ? void 0 : _a.notify(type, header, message, { duration: 3000 }); | ||
const shell = document.querySelector('zywave-shell'); | ||
shell === null || shell === void 0 ? void 0 : shell.notify(type, header, message, { duration: 3000 }); | ||
}; | ||
@@ -207,5 +207,2 @@ this.openAddNoteDialog = () => { | ||
__decorate([ | ||
query('zui-shell') | ||
], NotesWidget.prototype, "_shell", void 0); | ||
__decorate([ | ||
state() | ||
@@ -212,0 +209,0 @@ ], NotesWidget.prototype, "_loadNotesTask", void 0); |
{ | ||
"name": "@zywave/notes-widget", | ||
"version": "1.2.0-PW-896-Fix-Client.11", | ||
"version": "1.2.0-PW-896-Fix-Client.12", | ||
"description": "A custom web component for notes functionality through a widget", | ||
@@ -5,0 +5,0 @@ "main": "dist/notes-widget.js", |
@@ -71,5 +71,2 @@ import { LitElement, html, css } from 'lit'; | ||
@query('zui-shell') | ||
private _shell: any; | ||
@state() | ||
@@ -194,3 +191,4 @@ private _loadNotesTask = new Task( | ||
private showNotification = (type: 'success' | 'error', header: string, message: string): void => { | ||
this._shell?.notify(type, header, message, {duration: 3000}); | ||
const shell: any = document.querySelector('zywave-shell'); | ||
shell?.notify(type, header, message, {duration: 3000}); | ||
} | ||
@@ -197,0 +195,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
278604
3500