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);
|
resolve(response.output);
|
||||||
} else {
|
} else {
|
||||||
const error = response.errors?.[0] || response
|
const error = response.errors?.[0] || response
|
||||||
|
|
||||||
|
if (showError) {
|
||||||
this.notify({
|
this.notify({
|
||||||
text: error,
|
text: error,
|
||||||
error: true,
|
error: true,
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
reject(error)
|
reject(error)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue