Disable weekly task repetition when task is already part of a series
All checks were successful
Java CI with Maven / build-and-push-frontend (push) Successful in 8s
Java CI with Maven / build-and-push-backend (push) Successful in 8s

This commit is contained in:
Sebastian Böckelmann 2024-03-16 09:39:13 +01:00
parent f3c491826b
commit e7283c030d
2 changed files with 3 additions and 2 deletions

View File

@ -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>

View File

@ -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));
} }