[Fix] reset closeable value on every open
This commit is contained in:
parent
3a5f7d6eb4
commit
e1cf28e384
|
@ -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.7",
|
"version": "0.1.8",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Robert von Burg"
|
"Robert von Burg"
|
||||||
],
|
],
|
||||||
|
|
|
@ -203,10 +203,9 @@
|
||||||
this.confirmation = true;
|
this.confirmation = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof data.cancelable === "boolean")
|
if (this.confirmation)
|
||||||
this.cancelable = data.cancelable;
|
this.cancelable = !(typeof data.cancelable === "boolean") || data.cancelable;
|
||||||
if (typeof data.closeable === "boolean")
|
this.closeable = typeof data.closeable === "boolean" && data.closeable;
|
||||||
this.closeable = data.closeable;
|
|
||||||
|
|
||||||
console.log("Message: " + this.title + ': ' + this.line1);
|
console.log("Message: " + this.title + ': ' + this.line1);
|
||||||
this.$.dlg.notifyResize();
|
this.$.dlg.notifyResize();
|
||||||
|
|
Loading…
Reference in New Issue