diff options
author | dartcafe <github@dartcafe.de> | 2021-02-27 13:10:48 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-02-27 13:10:48 +0300 |
commit | 985fa6e5ebc878b00c64cd371079e45a491d2b58 (patch) | |
tree | a9a56b8afb4c56e316fddea30073f7e0ed280c7a /src/js/components/Settings | |
parent | 7a05a361da2b5e0879e9e83dcb2f6d9fa3009671 (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.vue | 8 |
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 } }, }, |