File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11< div *ngIf ="contextMenuObject ">
22 < div class ="d-flex space-children-mr justify-content-end " *dsRenderOnlyForBrowser ="true ">
3- < ng-container *ngFor ="let entry of (getStandAloneMenuEntries() | async) ">
3+ < ng-container *ngFor ="let entry of (standAloneEntries$ | async) ">
44 < ng-container *ngComponentOutlet ="entry; injector: objectInjector; "> </ ng-container >
55 </ ng-container >
66 < div ngbDropdown #itemOptions ="ngbDropdown " placement ="bottom-right "
1010 </ button >
1111 < div id ="itemOptionsDropdownMenu " aria-labelledby ="context-menu " ngbDropdownMenu >
1212 < h6 class ="dropdown-header "> {{ 'context-menu.actions.label' | translate }}</ h6 >
13- < ng-container *ngFor ="let entry of (getContextMenuEntries() | async) ">
13+ < ng-container *ngFor ="let entry of (contextEntries$ | async) ">
1414 < ng-container *ngComponentOutlet ="entry; injector: objectInjector; "> </ ng-container >
1515 </ ng-container >
1616 </ div >
Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ export class ContextMenuComponent implements OnInit {
4848 */
4949 public optionCount = 0 ;
5050
51+ public standAloneEntries$ : Observable < any > ;
52+ public contextEntries$ : Observable < any > ;
53+
5154 /**
5255 * Initialize instance variables
5356 *
@@ -71,6 +74,9 @@ export class ContextMenuComponent implements OnInit {
7174 ] ,
7275 parent : this . injector
7376 } ) ;
77+
78+ this . standAloneEntries$ = this . getStandAloneMenuEntries ( ) ;
79+ this . contextEntries$ = this . getContextMenuEntries ( ) ;
7480 }
7581
7682 /**
You can’t perform that action at this time.
0 commit comments