From d131e7237d759eca7af5de9a646dbbabcc606fd6 Mon Sep 17 00:00:00 2001 From: hoppe wang Date: Thu, 13 Oct 2022 17:11:12 +0800 Subject: [PATCH] fix: Create button for storage container under data menu is broken #AB1011 --- .../ui/buttons/clickable/clickable.component.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/@batch-flask/ui/buttons/clickable/clickable.component.ts b/src/@batch-flask/ui/buttons/clickable/clickable.component.ts index 5151904195..b7cdc2214b 100644 --- a/src/@batch-flask/ui/buttons/clickable/clickable.component.ts +++ b/src/@batch-flask/ui/buttons/clickable/clickable.component.ts @@ -12,7 +12,6 @@ import { Self, SimpleChanges, } from "@angular/core"; -import { MatMenuTrigger } from "@angular/material/menu"; import { RouterLink } from "@angular/router"; import { ENTER, SPACE } from "@batch-flask/core/keys"; import { Permission, PermissionService } from "@batch-flask/ui/permission"; @@ -60,7 +59,6 @@ export class ClickableComponent implements OnChanges, OnDestroy { public subtitle = ""; private permissionService: PermissionService | null; - private _matMenuTrigger: MatMenuTrigger | null; // Router link directive if any private _routerLink?: RouterLink; private _sub: Subscription; @@ -69,7 +67,6 @@ export class ClickableComponent implements OnChanges, OnDestroy { constructor(injector: Injector, @Self() @Optional() routerLink: RouterLink) { this._routerLink = routerLink; - this._matMenuTrigger = injector.get(MatMenuTrigger, null, 2); this.permissionService = injector.get(PermissionService, null); } @@ -121,9 +118,6 @@ export class ClickableComponent implements OnChanges, OnDestroy { if (this._routerLink) { this._routerLink.onClick(); } - if (this._matMenuTrigger) { - this._matMenuTrigger.openMenu(); - } } private _clearSubscription() {