diff options
author | shoetten <simon@hoetten.org> | 2016-02-05 21:01:43 +0100 |
---|---|---|
committer | shoetten <simon@hoetten.org> | 2016-11-22 21:28:31 +0100 |
commit | 80b93ce7117326464b55a76a9efbeeff36f28248 (patch) | |
tree | 83f884f557f26ca43a9c7d7bf682ad1582199267 /client/components/cards/cardDate.js | |
parent | d4497d7aeb968dbb9f8c4b84fbcc0f7cc3668167 (diff) | |
download | wekan-80b93ce7117326464b55a76a9efbeeff36f28248.tar.gz wekan-80b93ce7117326464b55a76a9efbeeff36f28248.tar.bz2 wekan-80b93ce7117326464b55a76a9efbeeff36f28248.zip |
Display start and due dates in minicards.
Diffstat (limited to 'client/components/cards/cardDate.js')
-rw-r--r-- | client/components/cards/cardDate.js | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/client/components/cards/cardDate.js b/client/components/cards/cardDate.js index 4a24941d..4152d618 100644 --- a/client/components/cards/cardDate.js +++ b/client/components/cards/cardDate.js @@ -158,8 +158,7 @@ const CardDate = BlazeComponent.extendComponent({ }, }); -// cardStartDate -(class extends CardDate { +class CardStartDate extends CardDate { onCreated() { super(); let self = this; @@ -173,10 +172,10 @@ const CardDate = BlazeComponent.extendComponent({ 'click .js-edit-date': Popup.open('editCardStartDate'), }); } -}).register('cardStartDate'); +} +CardStartDate.register('cardStartDate'); -// cardDueDate -(class extends CardDate { +class CardDueDate extends CardDate { onCreated() { super(); let self = this; @@ -190,4 +189,17 @@ const CardDate = BlazeComponent.extendComponent({ 'click .js-edit-date': Popup.open('editCardDueDate'), }); } -}).register('cardDueDate'); +} +CardDueDate.register('cardDueDate'); + +(class extends CardStartDate { + showDate() { + return this.date.get().format('l'); + } +}).register('minicardStartDate'); + +(class extends CardDueDate { + showDate() { + return this.date.get().format('l'); + } +}).register('minicardDueDate'); |