Skip to content

Commit

Permalink
fix(admin-ui): Reinstate multi-deletion of Assets
Browse files Browse the repository at this point in the history
Fixes #380
  • Loading branch information
michaelbromley committed Aug 30, 2023
1 parent 85a8866 commit a203e50
Showing 1 changed file with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,27 +44,27 @@
<vdr-chip *ngFor="let tag of lastSelected().tags" [colorFrom]="tag.value"
><clr-icon shape="tag" class="mr2"></clr-icon> {{ tag.value }}</vdr-chip
>
<div>
<a [routerLink]="['./', lastSelected().id]" class="button-ghost">
<clr-icon shape="pencil"></clr-icon> {{ 'common.edit' | translate }}
<clr-icon shape="arrow right"></clr-icon>
</a>
</div>
<div>
<button (click)="previewAsset(lastSelected())" class="button-small mt-1">
<clr-icon shape="eye"></clr-icon> {{ 'asset.preview' | translate }}
</button>
</div>
<div *ngIf="canDelete">
<button (click)="deleteAssets.emit(selectionManager.selection)" class="button-small mt-1">
<clr-icon shape="trash" class="is-danger"></clr-icon>
{{ 'common.delete' | translate }}
</button>
</div>
<div class="mt-1">
<vdr-asset-preview-links class="" [asset]="lastSelected()"></vdr-asset-preview-links>
</div>
</ng-container>
<div *ngIf="selectionManager.selection.length === 1">
<a [routerLink]="['./', lastSelected().id]" class="button-ghost">
<clr-icon shape="pencil"></clr-icon> {{ 'common.edit' | translate }}
<clr-icon shape="arrow right"></clr-icon>
</a>
</div>
<div *ngIf="selectionManager.selection.length === 1">
<button (click)="previewAsset(lastSelected())" class="button-small mt-1">
<clr-icon shape="eye"></clr-icon> {{ 'asset.preview' | translate }}
</button>
</div>
<div *ngIf="canDelete">
<button (click)="deleteAssets.emit(selectionManager.selection)" class="button-small mt-1">
<clr-icon shape="trash" class="is-danger"></clr-icon>
{{ 'common.delete' | translate }}
</button>
</div>
<div class="mt-1" *ngIf="selectionManager.selection.length === 1">
<vdr-asset-preview-links class="" [asset]="lastSelected()"></vdr-asset-preview-links>
</div>
</div>
</div>
<div class="card stack" [class.visible]="selectionManager.selection.length > 1"></div>
Expand Down

0 comments on commit a203e50

Please sign in to comment.