Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2021-02-27 13:10:48 +0300
committerdartcafe <github@dartcafe.de>2021-02-27 13:10:48 +0300
commit985fa6e5ebc878b00c64cd371079e45a491d2b58 (patch)
treea9a56b8afb4c56e316fddea30073f7e0ed280c7a /src/js/components/Settings
parent7a05a361da2b5e0879e9e83dcb2f6d9fa3009671 (diff)
use async/await
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/components/Settings')
-rw-r--r--src/js/components/Settings/SettingsDlg.vue8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/js/components/Settings/SettingsDlg.vue b/src/js/components/Settings/SettingsDlg.vue
index 64658871..309e33c7 100644
--- a/src/js/components/Settings/SettingsDlg.vue
+++ b/src/js/components/Settings/SettingsDlg.vue
@@ -57,12 +57,10 @@ export default {
},
watch: {
- show() {
+ async show() {
if (this.show === true) {
- this.$store.dispatch('settings/getCalendars')
- .then((response) => {
- this.calendars = response.data.calendars
- })
+ const response = await this.$store.dispatch('settings/getCalendars')
+ this.calendars = response.data.calendars
}
},
},