Skip to content

Commit

Permalink
Fix sitemap creation (#1019)
Browse files Browse the repository at this point in the history
Similar to #999 / #998.

Signed-off-by: Yannick Schaus <github@schaus.net>
  • Loading branch information
ghys authored Apr 25, 2021
1 parent 4f94d26 commit 7c8e787
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ export default {
? this.$oh.api.postPlain('/rest/ui/components/system:sitemap', JSON.stringify(this.sitemap), 'text/plain', 'application/json')
: this.$oh.api.put('/rest/ui/components/system:sitemap/' + this.sitemap.uid, this.sitemap)
promise.then((data) => {
this.dirty = false
if (this.createMode) {
this.$f7.toast.create({
text: 'Sitemap created',
Expand All @@ -317,7 +318,6 @@ export default {
closeTimeout: 2000
}).open()
}
this.dirty = false
this.$f7.emit('sidebarRefresh', null)
// if (!stay) this.$f7router.back()
}).catch((err) => {
Expand Down

0 comments on commit 7c8e787

Please sign in to comment.