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

@ -129,7 +129,7 @@
"vue-router": "^2.0.0-rc.5",
"vue-style-loader": "^3.0.0",
"vue-template-compiler": "^2.1.10",
"vuejs-datepicker": "^0.9.4",
"vuejs-datepicker": "habitrpg/vuejs-datepicker#v0.9.12",
"webpack": "^2.2.1",
"webpack-merge": "^4.0.0",
"winston": "^2.1.0",

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') }}