[Fix] Added propagate-show-dialog property as in inspector
This commit is contained in:
parent
62bbd35604
commit
c0fb08c88e
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "strolch-wc-reports",
|
"name": "strolch-wc-reports",
|
||||||
"description": "Strolch WebComponent Reports",
|
"description": "Strolch WebComponent Reports",
|
||||||
"version": "0.1.5",
|
"version": "0.1.6",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Robert von Burg"
|
"Robert von Burg"
|
||||||
],
|
],
|
||||||
|
|
|
@ -360,6 +360,12 @@
|
||||||
toDate: {
|
toDate: {
|
||||||
type: Date,
|
type: Date,
|
||||||
value: null
|
value: null
|
||||||
|
},
|
||||||
|
propagateShowDialog: {
|
||||||
|
type: Boolean,
|
||||||
|
value: function () {
|
||||||
|
return false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -374,7 +380,9 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
onShowDialog: function (event) {
|
onShowDialog: function (event) {
|
||||||
this.showError(event.detail.title, event.detail.text);
|
if (!this.propagateShowDialog) {
|
||||||
|
this.showError(event.detail.title, event.detail.text);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
showError: function (title, text) {
|
showError: function (title, text) {
|
||||||
this.dlgTitle = title;
|
this.dlgTitle = title;
|
||||||
|
|
Loading…
Reference in New Issue