mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Added week numbers to dates at card, minicard, Custom Field dates, DatePicker and Calendar. Part 2.
Thanks to xet7 !
This commit is contained in:
parent
835e3ef305
commit
9e6744d1e3
1 changed files with 16 additions and 3 deletions
|
@ -288,12 +288,25 @@ class CardCustomFieldDate extends CardDate {
|
|||
});
|
||||
}
|
||||
|
||||
classes() {
|
||||
return 'customfield-date';
|
||||
showWeek() {
|
||||
return this.date.get().week().toString();
|
||||
}
|
||||
|
||||
showDate() {
|
||||
// this will start working once mquandalle:moment
|
||||
// is updated to at least moment.js 2.10.5
|
||||
// until then, the date is displayed in the "L" format
|
||||
return this.date.get().calendar(null, {
|
||||
sameElse: 'llll',
|
||||
});
|
||||
}
|
||||
|
||||
showTitle() {
|
||||
return '';
|
||||
return `${this.date.get().format('LLLL')}`;
|
||||
}
|
||||
|
||||
classes() {
|
||||
return 'customfield-date';
|
||||
}
|
||||
|
||||
events() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue