mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-08 12:20:14 +00:00
Delete multiple images in one go if I select 2 or more images
This commit is contained in:
parent
c86769dd4f
commit
258e9f02c2
@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
<ng-container matColumnDef="delete" >
|
<ng-container matColumnDef="delete" >
|
||||||
<mat-header-cell *matHeaderCellDef>
|
<mat-header-cell *matHeaderCellDef>
|
||||||
<button mat-button *ngIf="selection.hasValue() && isAllSelected()" (click)="deleteAllFiles()" aria-label="Example icon button with a delete icon">
|
<button mat-button *ngIf="(selection.hasValue() && isAllSelected()) || selection.selected.length > 1" (click)="deleteAllFiles()" aria-label="Example icon button with a delete icon">
|
||||||
<mat-icon>delete</mat-icon>
|
<mat-icon>delete</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
</mat-header-cell>
|
</mat-header-cell>
|
||||||
|
@ -129,7 +129,7 @@ export class ImageManagerComponent implements OnInit {
|
|||||||
disableClose: true,
|
disableClose: true,
|
||||||
data: {
|
data: {
|
||||||
server: this.server,
|
server: this.server,
|
||||||
deleteFilesPaths: this.imageDatabase.data
|
deleteFilesPaths: this.selection.selected
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user