chore: use more BaseButtons
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
kolaente 2022-02-06 18:51:47 +01:00
parent c5d598cac4
commit 18f7adf420
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 6 additions and 5 deletions

View File

@ -7,16 +7,16 @@
<template #content="{isOpen}">
<div class="datepicker-with-range" :class="{'is-open': isOpen}">
<div class="selections">
<button @click="setDateRange(null)" :class="{'is-active': customRangeActive}">
<BaseButton @click="setDateRange(null)" :class="{'is-active': customRangeActive}">
{{ $t('misc.custom') }}
</button>
<button
</BaseButton>
<BaseButton
v-for="(value, text) in dateRanges"
:key="text"
@click="setDateRange(value)"
:class="{'is-active': from === value[0] && to === value[1]}">
{{ $t(`input.datepickerRange.ranges.${text}`) }}
</button>
</BaseButton>
</div>
<div class="flatpickr-container input-group">
<label class="label">
@ -48,7 +48,7 @@
<p>
{{ $t('input.datepickerRange.math.canuse') }}
<a @click="showHowItWorks = true">{{ $t('input.datepickerRange.math.learnhow') }}</a>.
<BaseButton class="has-text-primary" @click="showHowItWorks = true">{{ $t('input.datepickerRange.math.learnhow') }}</BaseButton>
</p>
<modal
@ -181,6 +181,7 @@ import {format} from 'date-fns'
import Popup from '@/components/misc/popup.vue'
import {dateRanges} from '@/components/date/dateRanges'
import BaseButton from '@/components/base/BaseButton.vue'
const {t} = useI18n()