This commit is contained in:
lesion 2023-02-04 10:17:24 +01:00
parent f2376997b8
commit 6951627d8e
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -20,7 +20,7 @@ v-col(cols=12)
@input="date => change('date', date)" @input="date => change('date', date)"
:attributes='attributes' :attributes='attributes'
:locale='$i18n.locale' :locale='$i18n.locale'
:is-dark="settings['theme.is_dark']" :is-dark="is_dark"
is-inline is-inline
is-expanded is-expanded
:min-date='type !== "recurrent" && new Date()') :min-date='type !== "recurrent" && new Date()')
@ -95,7 +95,7 @@ v-col(cols=12)
</template> </template>
<script> <script>
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { mapState, mapActions } from 'vuex' import { mapState, mapActions, mapGetters } from 'vuex'
import List from '@/components/List' import List from '@/components/List'
import { attributesFromEvents } from '../assets/helper' import { attributesFromEvents } from '../assets/helper'
import { mdiClockTimeFourOutline, mdiClockTimeEightOutline, mdiClose } from '@mdi/js' import { mdiClockTimeFourOutline, mdiClockTimeEightOutline, mdiClose } from '@mdi/js'
@ -123,6 +123,7 @@ export default {
}, },
computed: { computed: {
...mapState(['settings', 'events']), ...mapState(['settings', 'events']),
...mapGetters(['is_dark']),
fromDate () { fromDate () {
if (this.value.from) { if (this.value.from) {
if (this.value.multidate) { if (this.value.multidate) {