Open new teb with right click except of icon click

This commit is contained in:
Michał Zieliński
2023-11-07 12:40:33 +01:00
parent f3cd7fe1ae
commit 2d9fd3e42d
2 changed files with 2 additions and 11 deletions

View File

@@ -35,17 +35,8 @@
<td mat-cell *matCellDef="let element">{{LayerType[element.type]}}</td>
</ng-container>
<ng-container matColumnDef="opt">
<th mat-header-cell *matHeaderCellDef>&nbsp;</th>
<td mat-cell *matCellDef="let element">
<button mat-icon-button (click)="$event.stopPropagation(); openInNewTab(element)">
<mat-icon>add_to_home_screen</mat-icon>
</button>
</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns, sticky: false"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;" [routerLink]="['Detail/', row.id]"
style="cursor: pointer"></tr>
style="cursor: pointer" (contextmenu)="openInNewTab(row)"></tr>
</table>
<div (diunabiScrollEnd)="loadMore()"></div>

View File

@@ -26,7 +26,7 @@ import { Subject, debounceTime, distinctUntilChanged } from 'rxjs';
MatChipsModule, MatIconModule, NgFor, ScrollEndDirective, KeyValuePipe]
})
export class LayersListComponent implements OnInit {
displayedColumns = ['number', 'name', 'type', 'opt'];
displayedColumns = ['number', 'name', 'type'];
dataSource!: Layer[];
LayerType = LayerType;