Thing details: Show error message when modifying disabled Thing (#2951)
Do not fail silently. Fixes #1590. Signed-off-by: Florian Hotze <dev@florianhotze.com>pull/2946/head
parent
ba1772c6c0
commit
802d41284a
|
@ -550,6 +550,14 @@ export default {
|
||||||
destroyOnClose: true,
|
destroyOnClose: true,
|
||||||
closeTimeout: 2000
|
closeTimeout: 2000
|
||||||
}).open()
|
}).open()
|
||||||
|
}).catch(err => {
|
||||||
|
if (err === 409 || err === 'Conflict') {
|
||||||
|
this.$f7.toast.create({
|
||||||
|
text: 'Cannot modify configuration of uninitialized Thing',
|
||||||
|
destroyOnClose: true,
|
||||||
|
closeTimeout: 2000
|
||||||
|
}).open()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
doThingAction (action) {
|
doThingAction (action) {
|
||||||
|
|
Loading…
Reference in New Issue