Disable weekly task repetition when task is already part of a series
This commit is contained in:
parent
f3c491826b
commit
e7283c030d
@ -19,7 +19,8 @@
|
|||||||
<td mat-cell *matCellDef="let row">
|
<td mat-cell *matCellDef="let row">
|
||||||
<mat-checkbox (click)="$event.stopPropagation()"
|
<mat-checkbox (click)="$event.stopPropagation()"
|
||||||
(change)="$event ? selection.toggle(row) : null"
|
(change)="$event ? selection.toggle(row) : null"
|
||||||
[checked]="selection.isSelected(row)">
|
[checked]="selection.isSelected(row)"
|
||||||
|
[disabled]="row.hasTaskSerie">
|
||||||
</mat-checkbox>
|
</mat-checkbox>
|
||||||
</td>
|
</td>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
@ -48,7 +48,7 @@ export class TaskDashboardComponent implements OnChanges{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.selection.select(...this.datasource.data);
|
this.selection.select(...this.datasource.data.filter(task => !task.hasTaskSerie));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user