[Fix] Fixed cancelable and closeable not properly set

This commit is contained in:
Robert von Burg 2021-11-24 15:12:01 +01:00
parent 3f45fd8494
commit 3a5f7d6eb4
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "strolch-wc-information-dialog", "name": "strolch-wc-information-dialog",
"description": "Strolch WebComponent Information Dialog", "description": "Strolch WebComponent Information Dialog",
"version": "0.1.6", "version": "0.1.7",
"authors": [ "authors": [
"Robert von Burg" "Robert von Burg"
], ],

View File

@ -203,8 +203,10 @@
this.confirmation = true; this.confirmation = true;
} }
this.cancelable = typeof data.cancelable === "boolean" && data.cancelable; if (typeof data.cancelable === "boolean")
this.closeable = typeof data.closeable === "boolean" && data.closeable; this.cancelable = data.cancelable;
if (typeof data.closeable === "boolean")
this.closeable = data.closeable;
console.log("Message: " + this.title + ': ' + this.line1); console.log("Message: " + this.title + ': ' + this.line1);
this.$.dlg.notifyResize(); this.$.dlg.notifyResize();