Merge pull request #11064 from randi2kewl/todo-calendar-highlight-today

Added a highlight on today's date in To-Dos cal
This commit is contained in:
Matteo Pagliazzi
2019-03-23 18:29:15 +01:00
committed by GitHub
3 changed files with 32 additions and 2 deletions

View File

@@ -88,7 +88,8 @@
:clearButtonText='$t("clear")',
:todayButton='!challengeAccessRequired',
:todayButtonText='$t("today")',
:disabled-picker='challengeAccessRequired'
:disabled-picker='challengeAccessRequired',
:highlighted='calendarHighlights'
)
.option(v-if="task.type === 'daily'")
.form-group
@@ -99,7 +100,8 @@
:clearButton="false",
:todayButton="!challengeAccessRequired",
:todayButtonText="$t('today')",
:disabled-picker="challengeAccessRequired"
:disabled-picker="challengeAccessRequired",
:highlighted='calendarHighlights'
)
.option(v-if="task.type === 'daily'")
.form-group
@@ -721,6 +723,7 @@ export default {
con: 'constitution',
per: 'perception',
},
calendarHighlights: { dates: [new Date()]},
};
},
mounted () {