From e1cf28e38425b4e6e6a135ee216b61d114a1e4cb Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Thu, 25 Nov 2021 11:25:34 +0100 Subject: [PATCH] [Fix] reset closeable value on every open --- bower.json | 2 +- strolch-wc-information-dialog.html | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/bower.json b/bower.json index 5f100cd..6623a7b 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "strolch-wc-information-dialog", "description": "Strolch WebComponent Information Dialog", - "version": "0.1.7", + "version": "0.1.8", "authors": [ "Robert von Burg" ], diff --git a/strolch-wc-information-dialog.html b/strolch-wc-information-dialog.html index 8d79ae1..dfc082c 100644 --- a/strolch-wc-information-dialog.html +++ b/strolch-wc-information-dialog.html @@ -203,10 +203,9 @@ this.confirmation = true; } - if (typeof data.cancelable === "boolean") - this.cancelable = data.cancelable; - if (typeof data.closeable === "boolean") - this.closeable = data.closeable; + if (this.confirmation) + this.cancelable = !(typeof data.cancelable === "boolean") || data.cancelable; + this.closeable = typeof data.closeable === "boolean" && data.closeable; console.log("Message: " + this.title + ': ' + this.line1); this.$.dlg.notifyResize();