diff options
author | dartcafe <github@dartcafe.de> | 2021-06-19 21:33:34 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-06-19 21:33:34 +0300 |
commit | b97f728ffd7126ec50f4278cd8828558ae610fbb (patch) | |
tree | 7d985b3e33b48139d3d26142c72a18d9146bb389 /src/js | |
parent | ad0b6583c4ba23ff89072cfee94e087e7b838499 (diff) |
change term switch to toggle for consistency
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/components/Configuration/ConfigClosing.vue | 4 | ||||
-rw-r--r-- | src/js/components/User/UserMenu.vue | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/js/components/Configuration/ConfigClosing.vue b/src/js/components/Configuration/ConfigClosing.vue index 0abda786..ff05f907 100644 --- a/src/js/components/Configuration/ConfigClosing.vue +++ b/src/js/components/Configuration/ConfigClosing.vue @@ -25,7 +25,7 @@ <ButtonDiv :icon="closed ? 'icon-polls-open' : 'icon-polls-closed'" :title="closed ? t('polls', 'Reopen poll'): t('polls', 'Close poll')" - @click="switchClosed()" /> + @click="toggleClosed()" /> <CheckBoxDiv v-show="!closed" v-model="useExpire" :label="t('polls', 'Poll closing date')" /> <DatetimePicker v-show="useExpire && !closed" v-model="expire" v-bind="expirationDatePicker" /> </div> @@ -102,7 +102,7 @@ export default { }, methods: { - switchClosed() { + toggleClosed() { if (this.closed) { this.$store.commit('poll/setProperty', { expire: 0 }) } else { diff --git a/src/js/components/User/UserMenu.vue b/src/js/components/User/UserMenu.vue index d28a9908..7ef43e01 100644 --- a/src/js/components/User/UserMenu.vue +++ b/src/js/components/User/UserMenu.vue @@ -45,7 +45,7 @@ <ActionCheckbox :checked="subscribed" :disabled="!acl.allowSubscribe" title="check" - @change="switchSubscription"> + @change="toggleSubscription"> {{ t('polls', 'Subscribe to notifications') }} </ActionCheckbox> <ActionButton v-if="$route.name === 'publicVote' && emailAddress" @@ -139,7 +139,7 @@ export default { }, methods: { - async switchSubscription() { + async toggleSubscription() { await this.$store.dispatch('subscription/update', !this.subscribed) }, |