Thing Add: Navigate to the new Thing once added (#3014)

Resolve #3013

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
pull/3021/head
jimtng 2025-01-15 06:01:10 +10:00 committed by GitHub
parent 7ef5b6fe1c
commit 3a034210f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ export default {
destroyOnClose: true,
closeTimeout: 2000
}).open()
setTimeout(() => { this.$f7router.navigate('/settings/things/', { reloadCurrent: true }) }, 300)
this.$f7router.navigate('/settings/things/' + this.thing.UID)
})
.catch((error) => {
this.$f7.dialog.alert('Error creating Thing: ' + error)