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-06-25 17:40:35 +0300
committerdartcafe <github@dartcafe.de>2021-06-25 17:40:35 +0300
commitdd5e6f67f9e17d1e8e1e7e17764f1de7f92b9ab3 (patch)
treece7f4235deda215e8ab1c5b04f20c46d545a2753 /src/js/components/Configuration/ConfigVoteLimit.vue
parentd9b8a97aecce6821c9429862f408510c84096737 (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.vue8
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,
},