When clicking the link in the context menu, it should now close

Fix #534
This commit is contained in:
jliddev
2020-11-28 11:27:42 -06:00
parent e720ca9438
commit efc286d2ee
2 changed files with 6 additions and 1 deletions

View File

@@ -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}}

View File

@@ -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);