feat(dates): Clear and Today buttons (#9005)

This commit is contained in:
Sabe Jones
2017-08-30 12:15:24 -05:00
committed by GitHub
parent 560d247c9b
commit 32fd4e33c8
2 changed files with 17 additions and 3 deletions

View File

@@ -69,10 +69,24 @@
.option-item-label(v-once) {{ $t('hard') }}
.option(v-if="task.type === 'todo'")
label(v-once) {{ $t('dueDate') }}
datepicker(v-model="task.date")
datepicker(
v-model="task.date",
:clearButton='true',
clearButtonIcon='category-select',
:clearButtonText='$t("clear")',
:todayButton='true',
todayButtonIcon='category-select',
:todayButtonText='$t("today")',
)
.option(v-if="task.type === 'daily'")
label(v-once) {{ $t('startDate') }}
datepicker(v-model="task.startDate")
datepicker(
v-model="task.startDate",
:clearButton='false',
:todayButton='true',
todayButtonIcon='category-select',
:todayButtonText='$t("today")',
)
.option(v-if="task.type === 'daily'")
.form-group
label(v-once) {{ $t('repeats') }}