Hide copy function for subtasks (weekly)
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 7s

This commit is contained in:
Sebastian Böckelmann 2024-03-16 14:01:10 +01:00
parent 6047f4097c
commit 7526b6c134
2 changed files with 3 additions and 1 deletions

View File

@ -63,7 +63,7 @@
</ng-container>
<ng-container matColumnDef="delete">
<th mat-header-cell *matHeaderCellDef mat-sort-header>
<button mat-icon-button color="primary" (click)="repeatSelectedTasks()" [disabled]="selection.isEmpty()"><mat-icon>event_repeat</mat-icon></button>
<button *ngIf="subTasks.length == 0" mat-icon-button color="primary" (click)="repeatSelectedTasks()" [disabled]="selection.isEmpty()"><mat-icon>event_repeat</mat-icon></button>
</th>
<td mat-cell *matCellDef="let task">
<button mat-icon-button color="warn" (click)="deleteTask(task)"><mat-icon>delete</mat-icon></button>

View File

@ -26,6 +26,8 @@ export class TaskDashboardComponent implements OnChanges{
this.datasource.data = this.subTasks;
this.datasource.paginator = this.paginator!;
this.datasource.sort = this.sort!;
this.displayedColumns = this.displayedColumns.filter(col => col !== 'select')
}
}