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>2022-09-21 23:36:07 +0300
committerdartcafe <github@dartcafe.de>2022-09-21 23:36:07 +0300
commit5e6d59920f5e4a07a062cc933d0569042ae82720 (patch)
treecd7888af0f40bc5968a65c93c23011f147bc9af5 /src/js/components
parent7134eb178c60efe256783ca7e676ca741b75bd56 (diff)
change button to NcButton
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/components')
-rw-r--r--src/js/components/Create/CreateDlg.vue10
-rw-r--r--src/js/components/Options/OptionsDateAdd.vue16
2 files changed, 14 insertions, 12 deletions
diff --git a/src/js/components/Create/CreateDlg.vue b/src/js/components/Create/CreateDlg.vue
index df029b79..13404cde 100644
--- a/src/js/components/Create/CreateDlg.vue
+++ b/src/js/components/Create/CreateDlg.vue
@@ -41,12 +41,12 @@
</ConfigBox>
<div class="create-buttons">
- <button class="button" @click="cancel">
+ <NcButton class="button" @click="cancel">
{{ t('polls', 'Cancel') }}
- </button>
- <button :disabled="titleEmpty" class="button primary" @click="confirm">
+ </NcButton>
+ <NcButton :disabled="titleEmpty" type="primary" @click="confirm">
{{ t('polls', 'Apply') }}
- </button>
+ </NcButton>
</div>
</div>
</template>
@@ -54,6 +54,7 @@
<script>
import { mapState } from 'vuex'
import { showSuccess, showError } from '@nextcloud/dialogs'
+import { NcButton } from '@nextcloud/vue'
import ConfigBox from '../Base/ConfigBox.vue'
import RadioGroupDiv from '../Base/RadioGroupDiv.vue'
import SpeakerIcon from 'vue-material-design-icons/Bullhorn.vue'
@@ -64,6 +65,7 @@ export default {
name: 'CreateDlg',
components: {
+ NcButton,
SpeakerIcon,
CheckIcon,
ConfigBox,
diff --git a/src/js/components/Options/OptionsDateAdd.vue b/src/js/components/Options/OptionsDateAdd.vue
index 248979d2..41f72a0e 100644
--- a/src/js/components/Options/OptionsDateAdd.vue
+++ b/src/js/components/Options/OptionsDateAdd.vue
@@ -41,18 +41,18 @@
{{ t('polls', 'Select range') }}
</NcCheckboxRadioSwitch>
<div class="picker-buttons">
- <button v-if="useTime" @click="toggleTimePanel">
+ <NcButton v-if="useTime" @click="toggleTimePanel">
{{ showTimePanel
? t('polls', 'Change date')
: t('polls', 'Change time')
}}
- </button>
- <button v-if="useTime" @click="removeTime">
+ </NcButton>
+ <NcButton v-if="useTime" @click="removeTime">
{{ t('polls', 'Remove time') }}
- </button>
- <button v-else :disabled="!dateOption.isValid" @click="addTime">
+ </NcButton>
+ <NcButton v-else :disabled="!dateOption.isValid" @click="addTime">
{{ t('polls', 'Add time') }}
- </button>
+ </NcButton>
</div>
</template>
@@ -62,9 +62,9 @@
{{ dateOption.text }}
</div>
<FlexSpacer />
- <button v-if="dateOption.option.duration >= 0 && !added" class="primary" @click="addOption">
+ <NcButton v-if="dateOption.option.duration >= 0 && !added" type="primary" @click="addOption">
{{ t('polls', 'Add') }}
- </button>
+ </NcButton>
<div v-if="added" v-tooltip.auto="t('polls', 'Added')" class="icon-polls-yes" />
</div>
<div v-else>