mirror of
https://github.com/WowUp/WowUp.git
synced 2026-04-23 15:27:03 -04:00
When clicking the link in the context menu, it should now close
Fix #534
This commit is contained in:
@@ -234,7 +234,8 @@
|
||||
{{ "PAGES.MY_ADDONS.ADDON_CONTEXT_MENU.SHOW_FOLDER" | translate }}
|
||||
</button>
|
||||
<!-- VIEW IN PROVIDER -->
|
||||
<a *ngIf="listItem.isUnMatched() === false" mat-menu-item appExternalLink [href]="listItem.addon.externalUrl">
|
||||
<a *ngIf="listItem.isUnMatched() === false" mat-menu-item appExternalLink [href]="listItem.addon.externalUrl"
|
||||
(click)="closeContextMenu()">
|
||||
<div class="row align-items-center">
|
||||
<div class="flex-grow-1 mr-3">
|
||||
{{ "DIALOGS.ADDON_DETAILS.VIEW_ON_PROVIDER_PREFIX" | translate }} {{listItem.addon.providerName}}
|
||||
|
||||
@@ -366,6 +366,10 @@ export class MyAddonsComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||
}
|
||||
}
|
||||
|
||||
public closeContextMenu() {
|
||||
this.contextMenu.closeMenu();
|
||||
}
|
||||
|
||||
public onUpdateAllContext(event: MouseEvent) {
|
||||
event.preventDefault();
|
||||
this.updateContextMenuPosition(event);
|
||||
|
||||
Reference in New Issue
Block a user