mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
#2066 Bearbeiten Button disabled Logik angepasst
This commit is contained in:
@@ -45,7 +45,12 @@ export class TaskModalComponent {
|
||||
);
|
||||
|
||||
editDisabled$ = this.info$.pipe(
|
||||
map((info) => this.dateAdapter.isGreaterThan(new Date(), this.domainTaskCalendarService.getDisplayInfoDate(info)))
|
||||
map((info) => {
|
||||
if (info.publicationDate && !info.taskDate && !info.taskOverdueDate) {
|
||||
return this.dateAdapter.isGreaterThan(this.dateAdapter.today(), new Date(info.publicationDate));
|
||||
}
|
||||
return this.dateAdapter.isGreaterThan(this.dateAdapter.today(), new Date(info.taskDate));
|
||||
})
|
||||
);
|
||||
|
||||
indicatorColor$ = this.info$.pipe(map((info) => this.domainTaskCalendarService.getProcessingStatusColorCode(info)));
|
||||
|
||||
Reference in New Issue
Block a user