|
|
|
@ -66,6 +66,7 @@ export class ActivitiesTableComponent implements OnChanges, OnDestroy, OnInit {
|
|
|
|
|
public endOfToday = endOfToday();
|
|
|
|
|
public filters$ = new Subject<Filter[]>();
|
|
|
|
|
public hasDrafts = false;
|
|
|
|
|
public hasDuplicateActivity = false;
|
|
|
|
|
public isAfter = isAfter;
|
|
|
|
|
public isLoading = true;
|
|
|
|
|
public isUUID = isUUID;
|
|
|
|
@ -97,6 +98,10 @@ export class ActivitiesTableComponent implements OnChanges, OnDestroy, OnInit {
|
|
|
|
|
this.selectedActivities.emit(selectedRows.source.selected);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.hasDuplicateActivity = this.activities.some(({ isDuplicate }) => {
|
|
|
|
|
return isDuplicate;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public areAllRowsSelected() {
|
|
|
|
|