#2066 Wenn es kein publicationDate gibt (duplizierte Vorabinfos), dann Prüfung auf taskDate

This commit is contained in:
Andreas Schickinger
2021-08-12 13:07:20 +02:00
parent 8cb9fb8ce1
commit 83bee04e1d

View File

@@ -46,7 +46,7 @@ export class TaskModalComponent {
editDisabled$ = this.info$.pipe(
map((info) => {
if (info.publicationDate && info.taskDate && info.taskOverdueDate) {
if ((info.taskDate && info.taskOverdueDate) || !info.publicationDate) {
return this.dateAdapter.isGreaterThan(this.dateAdapter.today(), new Date(info.taskDate));
}
return this.dateAdapter.isGreaterThan(this.dateAdapter.today(), new Date(info.publicationDate));