Hide copy function for subtasks (weekly)
This commit is contained in:
		
							parent
							
								
									6047f4097c
								
							
						
					
					
						commit
						7526b6c134
					
				| @ -63,7 +63,7 @@ | |||||||
|     </ng-container> |     </ng-container> | ||||||
|     <ng-container matColumnDef="delete"> |     <ng-container matColumnDef="delete"> | ||||||
|       <th mat-header-cell *matHeaderCellDef mat-sort-header> |       <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> |       </th> | ||||||
|       <td mat-cell *matCellDef="let task"> |       <td mat-cell *matCellDef="let task"> | ||||||
|         <button mat-icon-button color="warn" (click)="deleteTask(task)"><mat-icon>delete</mat-icon></button> |         <button mat-icon-button color="warn" (click)="deleteTask(task)"><mat-icon>delete</mat-icon></button> | ||||||
|  | |||||||
| @ -26,6 +26,8 @@ export class TaskDashboardComponent implements OnChanges{ | |||||||
|       this.datasource.data = this.subTasks; |       this.datasource.data = this.subTasks; | ||||||
|       this.datasource.paginator = this.paginator!; |       this.datasource.paginator = this.paginator!; | ||||||
|       this.datasource.sort = this.sort!; |       this.datasource.sort = this.sort!; | ||||||
|  | 
 | ||||||
|  |       this.displayedColumns = this.displayedColumns.filter(col => col !== 'select') | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user