forked from platypush/platypush
[UI] Added extra showError
condition on /execute
.
This commit is contained in:
parent
c1b1bd6c50
commit
8329de15ba
1 changed files with 7 additions and 4 deletions
|
@ -27,10 +27,13 @@ export default {
|
|||
resolve(response.output);
|
||||
} else {
|
||||
const error = response.errors?.[0] || response
|
||||
this.notify({
|
||||
text: error,
|
||||
error: true,
|
||||
})
|
||||
|
||||
if (showError) {
|
||||
this.notify({
|
||||
text: error,
|
||||
error: true,
|
||||
})
|
||||
}
|
||||
|
||||
reject(error)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue