[Fix] added error dialog propagation to jobs and operations-log
This commit is contained in:
parent
fcf3505c8e
commit
23484fbdbd
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "strolch-wc-inspector",
|
||||
"description": "Strolch WebComponent Inspector",
|
||||
"version": "0.14.0",
|
||||
"version": "0.14.1",
|
||||
"authors": ["Robert von Burg"],
|
||||
"keywords": [
|
||||
"strolch",
|
||||
|
|
|
@ -167,6 +167,12 @@
|
|||
properties: {
|
||||
jobs: {
|
||||
type: Array
|
||||
},
|
||||
propagateShowDialog: {
|
||||
type: Boolean,
|
||||
value: function () {
|
||||
return false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -191,7 +197,11 @@
|
|||
"strolch-show-dialog": "onShowDialog"
|
||||
},
|
||||
onShowDialog: function (event) {
|
||||
this.showError(event.detail.title, event.detail.text);
|
||||
if (!this.propagateShowDialog) {
|
||||
event.cancelBubble = true;
|
||||
event.stopPropagation();
|
||||
this.showError(event.detail.title, event.detail.text);
|
||||
}
|
||||
},
|
||||
showError: function (title, text) {
|
||||
this.dlgTitle = title;
|
||||
|
|
|
@ -296,6 +296,12 @@
|
|||
observer: 'toChanged',
|
||||
value: null
|
||||
},
|
||||
propagateShowDialog: {
|
||||
type: Boolean,
|
||||
value: function () {
|
||||
return false
|
||||
}
|
||||
},
|
||||
|
||||
i18n: {
|
||||
type: Object,
|
||||
|
@ -378,7 +384,11 @@
|
|||
},
|
||||
|
||||
onShowDialog: function (event) {
|
||||
this.showError(event.detail.title, event.detail.text);
|
||||
if (!this.propagateShowDialog) {
|
||||
event.cancelBubble = true;
|
||||
event.stopPropagation();
|
||||
this.showError(event.detail.title, event.detail.text);
|
||||
}
|
||||
},
|
||||
showError: function (title, text) {
|
||||
this.dlgTitle = title;
|
||||
|
|
Loading…
Reference in New Issue