From 90157c1ee7084ef59e76c93bc7cfd6109a26023d Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Wed, 3 Jul 2019 20:08:05 -0400 Subject: [PATCH] clean up --- .../stream/status/action-bar/action-bar.component.html | 7 +++---- .../stream/status/action-bar/action-bar.component.ts | 8 ++++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/app/components/stream/status/action-bar/action-bar.component.html b/src/app/components/stream/status/action-bar/action-bar.component.html index e67de27e..223ea7eb 100644 --- a/src/app/components/stream/status/action-bar/action-bar.component.html +++ b/src/app/components/stream/status/action-bar/action-bar.component.html @@ -27,11 +27,10 @@ - - + + - + Expand status diff --git a/src/app/components/stream/status/action-bar/action-bar.component.ts b/src/app/components/stream/status/action-bar/action-bar.component.ts index 0bac8ec1..fa15eb19 100644 --- a/src/app/components/stream/status/action-bar/action-bar.component.ts +++ b/src/app/components/stream/status/action-bar/action-bar.component.ts @@ -28,7 +28,7 @@ export class ActionBarComponent implements OnInit, OnDestroy { faEllipsisH = faEllipsisH; faLock = faLock; - @ViewChild(ContextMenuComponent) public basicMenu: ContextMenuComponent; + @ViewChild(ContextMenuComponent) public contextMenu: ContextMenuComponent; public items = [ { name: 'John', otherProperty: 'Foo' }, { name: 'Joe', otherProperty: 'Bar' } @@ -241,12 +241,12 @@ export class ActionBarComponent implements OnInit, OnDestroy { return false; } - public onContextMenu($event: MouseEvent, item: any): void { + public onContextMenu($event: MouseEvent): void { this.contextMenuService.show.next({ // Optional - if unspecified, all context menu components will open - contextMenu: this.basicMenu, + contextMenu: this.contextMenu, event: $event, - item: item, + item: null }); $event.preventDefault(); $event.stopPropagation();