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
|
||||||
this.notify({
|
|
||||||
text: error,
|
if (showError) {
|
||||||
error: true,
|
this.notify({
|
||||||
})
|
text: error,
|
||||||
|
error: true,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
reject(error)
|
reject(error)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue