Show completed date in details view footer tooltip
This commit is contained in:
parent
4df067611e
commit
0c68f1130d
2 changed files with 8 additions and 8 deletions
|
@ -460,6 +460,7 @@ export default {
|
|||
taskInfo: function() {
|
||||
return t('tasks', 'Last modified %s').replace('%s', moment(this.task.modified, 'YYYY-MM-DDTHH:mm:ss').calendar())
|
||||
+ '<br />' + t('tasks', 'Created %s').replace('%s', moment(this.task.created, 'YYYY-MM-DDTHH:mm:ss').calendar())
|
||||
+ (this.task.completed ? ('<br />' + t('tasks', 'Completed %s').replace('%s', moment(this.task.completedDate, 'YYYY-MM-DDTHH:mm:ss').calendar())) : '')
|
||||
},
|
||||
isAllDayPossible: function() {
|
||||
return !this.task.calendar.readOnly && (this.task.due || this.task.start)
|
||||
|
|
|
@ -84,7 +84,9 @@ export default class Task {
|
|||
this._summary = this.vtodo.getFirstPropertyValue('summary') || ''
|
||||
this._priority = this.vtodo.getFirstPropertyValue('priority')
|
||||
this._complete = this.vtodo.getFirstPropertyValue('percent-complete') || 0
|
||||
this._completed = !!this.vtodo.getFirstPropertyValue('completed')
|
||||
var comp = this.vtodo.getFirstPropertyValue('completed')
|
||||
this._completed = !!comp
|
||||
this._completedDate = comp ? comp.toJSDate() : null
|
||||
this._status = this.vtodo.getFirstPropertyValue('status')
|
||||
this._note = this.vtodo.getFirstPropertyValue('description') || ''
|
||||
this._related = this.vtodo.getFirstPropertyValue('related-to') || null
|
||||
|
@ -264,16 +266,13 @@ export default class Task {
|
|||
this.vtodo.removeProperty('completed')
|
||||
}
|
||||
this.updateLastModified()
|
||||
this._completed = !!this.vtodo.getFirstPropertyValue('completed')
|
||||
var comp = this.vtodo.getFirstPropertyValue('completed')
|
||||
this._completed = !!comp
|
||||
this._completedDate = comp ? comp.toJSDate() : null
|
||||
}
|
||||
|
||||
get completedDate() {
|
||||
var comp = this.vtodo.getFirstPropertyValue('completed')
|
||||
if (comp) {
|
||||
return comp.toJSDate()
|
||||
} else {
|
||||
return null
|
||||
}
|
||||
return this._completedDate
|
||||
}
|
||||
|
||||
get status() {
|
||||
|
|
Loading…
Reference in a new issue