Skip to content

Commit

Permalink
Thing details: Show error message when modifying disabled Thing (#2951)
Browse files Browse the repository at this point in the history
Do not fail silently.

Fixes #1590.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
  • Loading branch information
florian-h05 authored Dec 28, 2024
1 parent ba1772c commit 802d412
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,14 @@ export default {
destroyOnClose: true,
closeTimeout: 2000
}).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) {
Expand Down

0 comments on commit 802d412

Please sign in to comment.