issue-106 #107

Merged
sebastian merged 18 commits from issue-106 into master 2024-03-17 09:17:11 +01:00
2 changed files with 3 additions and 1 deletions
Showing only changes of commit 7526b6c134 - Show all commits

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')
}
}