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
Florian Hotze 2024-12-28 15:10:01 +01:00 committed by GitHub
parent ba1772c6c0
commit 802d41284a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -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) {