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/Options/OptionsDateAdd.vue
parentd9b8a97aecce6821c9429862f408510c84096737 (diff)
replace checkBoxDiv with checkboxRadioSwitch from @nextcloud/vue
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/components/Options/OptionsDateAdd.vue')
-rw-r--r--src/js/components/Options/OptionsDateAdd.vue9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/js/components/Options/OptionsDateAdd.vue b/src/js/components/Options/OptionsDateAdd.vue
index 68d71425..465e397b 100644
--- a/src/js/components/Options/OptionsDateAdd.vue
+++ b/src/js/components/Options/OptionsDateAdd.vue
@@ -46,7 +46,9 @@
</div>
</template>
<template #header>
- <CheckBoxDiv v-model="useRange" class="range" :label="t('polls', 'Select range')" />
+ <CheckboxRadioSwitch :checked.sync="useRange" class="range" type="switch">
+ {{ t('polls', 'Select range') }}
+ </CheckboxRadioSwitch>
<div class="picker-buttons">
<button v-if="useTime" @click="toggleTimePanel">
{{ t('polls', showTimePanel ? 'Change date': 'Change time') }}
@@ -64,10 +66,9 @@
<script>
-import CheckBoxDiv from '../Base/CheckBoxDiv'
import { showError, showSuccess } from '@nextcloud/dialogs'
import moment from '@nextcloud/moment'
-import { DatetimePicker } from '@nextcloud/vue'
+import { CheckboxRadioSwitch, DatetimePicker } from '@nextcloud/vue'
import ButtonDiv from '../Base/ButtonDiv'
import Spacer from '../Base/Spacer'
@@ -75,7 +76,7 @@ export default {
name: 'OptionsDateAdd',
components: {
- CheckBoxDiv,
+ CheckboxRadioSwitch,
ButtonDiv,
DatetimePicker,
Spacer,