Skip to content
Snippets Groups Projects
Commit cf009ccc authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #18282 TIME 0:10 fix duplicate matMenu id

parent 712261ad
No related branches found
No related tags found
No related merge requests found
......@@ -44,10 +44,10 @@
[disabled]="!editMode">
<div *ngIf="!loading && file.content !== null && !hideTools" class="viewer-tools">
<!-- Download original file with pdf/original format -->
<button *ngIf="downloadActions.length > 0" mat-icon-button [matMenuTriggerFor]="menuOptions" [matTooltip]="'lang.downloadOriginalFile' | translate">
<button *ngIf="downloadActions.length > 0" mat-icon-button [matMenuTriggerFor]="formatListMenu" [matTooltip]="'lang.downloadOriginalFile' | translate">
<mat-icon class="fa fa-download"></mat-icon>
</button>
<mat-menu #menuOptions="matMenu" [class]="'optionsListMenu'">
<mat-menu #formatListMenu="matMenu" [class]="'optionsListMenu'">
<ng-container *ngFor="let action of downloadActions">
<button mat-menu-item (click)="action.id === 'original' ? downloadOriginalFile(action.fileData) : downloadConvertedFile()">
<mat-icon color="primary" [class]="action.icon"></mat-icon>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment