[Fix] added error dialog propagation to jobs and operations-log

This commit is contained in:
Robert von Burg 2019-01-17 09:11:02 +01:00
parent fcf3505c8e
commit 23484fbdbd
3 changed files with 23 additions and 3 deletions

View File

@ -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",

View File

@ -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;

View File

@ -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;