mirror of
https://github.com/wekan/wekan.git
synced 2025-12-23 10:50:13 +01:00
Attempt to implement date activities notification
This commit is contained in:
parent
4e23429cb8
commit
cfe500794c
3 changed files with 56 additions and 0 deletions
|
|
@ -81,6 +81,31 @@ BlazeComponent.extendComponent({
|
|||
return createCardLink(this.currentData().activity.card());
|
||||
},
|
||||
|
||||
receivedDate() {
|
||||
const receivedDate = this.currentData().activity.card();
|
||||
if (!receivedDate) return null;
|
||||
return receivedDate.receivedAt;
|
||||
},
|
||||
|
||||
startDate() {
|
||||
const startDate = this.currentData().activity.card();
|
||||
if (!startDate) return null;
|
||||
return startDate.startAt;
|
||||
},
|
||||
|
||||
dueDate() {
|
||||
const dueDate = this.currentData().activity.card();
|
||||
if (!dueDate) return null;
|
||||
return dueDate.dueAt;
|
||||
},
|
||||
|
||||
endDate() {
|
||||
const endDate = this.currentData().activity.card();
|
||||
if (!endDate) return null;
|
||||
// return endDate.getEnd();
|
||||
return endDate.getEnd().format('YYYY-MM-DD HH:mm');
|
||||
},
|
||||
|
||||
lastLabel() {
|
||||
const lastLabelId = this.currentData().activity.labelId;
|
||||
if (!lastLabelId) return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue