diff options
author | dartcafe <github@dartcafe.de> | 2021-06-25 17:40:35 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-06-25 17:40:35 +0300 |
commit | dd5e6f67f9e17d1e8e1e7e17764f1de7f92b9ab3 (patch) | |
tree | ce7f4235deda215e8ab1c5b04f20c46d545a2753 /src/js/components/Configuration/ConfigVoteLimit.vue | |
parent | d9b8a97aecce6821c9429862f408510c84096737 (diff) |
replace checkBoxDiv with checkboxRadioSwitch from @nextcloud/vue
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/components/Configuration/ConfigVoteLimit.vue')
-rw-r--r-- | src/js/components/Configuration/ConfigVoteLimit.vue | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/js/components/Configuration/ConfigVoteLimit.vue b/src/js/components/Configuration/ConfigVoteLimit.vue index 4e2a812b..c3358421 100644 --- a/src/js/components/Configuration/ConfigVoteLimit.vue +++ b/src/js/components/Configuration/ConfigVoteLimit.vue @@ -22,7 +22,9 @@ <template> <div> - <CheckBoxDiv v-model="useVoteLimit" :label="t('polls', 'Limit yes votes per user')" /> + <CheckboxRadioSwitch :checked.sync="useVoteLimit" type="switch"> + {{ t('polls', 'Limit yes votes per user') }} + </CheckboxRadioSwitch> <InputDiv v-if="voteLimit" v-model="voteLimit" class="selectUnit indented" @@ -34,14 +36,14 @@ <script> import { mapState } from 'vuex' -import CheckBoxDiv from '../Base/CheckBoxDiv' +import { CheckboxRadioSwitch } from '@nextcloud/vue' import InputDiv from '../Base/InputDiv' export default { name: 'ConfigVoteLimit', components: { - CheckBoxDiv, + CheckboxRadioSwitch, InputDiv, }, |