Fix confirmation dialog in widget editor for newly created widgets (#944)

Signed-off-by: Hubert Nusser <hubsif@gmx.de>
pull/946/head
hubsif 2021-03-09 00:59:19 +01:00 committed by GitHub
parent ba609e742a
commit 585591586e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -249,6 +249,7 @@ export default {
? this.$oh.api.postPlain('/rest/ui/components/ui:widget', JSON.stringify(this.widget), 'text/plain', 'application/json')
: this.$oh.api.put('/rest/ui/components/ui:widget/' + this.widget.uid, this.widget)
promise.then((data) => {
this.dirty = false
if (this.createMode) {
this.$f7.toast.create({
text: 'Widget created',
@ -264,7 +265,6 @@ export default {
closeTimeout: 2000
}).open()
}
this.dirty = false
this.$f7.emit('sidebarRefresh', null)
// if (!stay) this.$f7router.back()
}).catch((err) => {