Better reminders #308

Merged
konrad merged 37 commits from feature/better-reminders into master 2020-11-28 13:59:28 +00:00
1 changed files with 11 additions and 3 deletions
Showing only changes of commit 943098f7d1 - Show all commits

View File

@ -1,8 +1,12 @@
<template>
<div class="datepicker">
<a @click.stop="show = !show">
show
{{ formatDate(date) }}
<template v-if="date === null">
{{ chooseDateLabel }}
</template>
<template v-else>
{{ formatDate(date) }}
</template>
</a>
<transition name="fade">
@ -127,7 +131,11 @@ export default {
props: {
value: {
validator: prop => prop instanceof Date || prop === null
}
},
chooseDateLabel: {
type: String,
default: 'Choose a date'
},
},
mounted() {
this.date = this.value