3
0

Fix event fetch issue on calendar refresh

This commit is contained in:
Katrin Yordanova
2023-04-05 14:15:55 +03:00
parent 7fce552ee7
commit de644b2a1c
2 changed files with 6 additions and 3 deletions

View File

@@ -352,9 +352,9 @@ export default {
refresh () {
this.refreshing = true
this.api().refetchEvents().then(() => {
this.key++
})
new Promise(resolve => resolve(this.api().refetchEvents()))
.then(() => this.key++)
.catch(() => this.toastErrorHandler(this.$t('notification:page.block.calendar.eventFetchFailed')))
},
},
}

View File

@@ -79,6 +79,9 @@ namespace:
imported: Namespace imported
importFailed: Namespace failed to import
page:
block:
calendar:
eventFetchFailed: Could not fetch list of events
createFailed: Could not create a page
cloneFailed: Could not clone this page
deleteFailed: Could not delete this page