File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- < div class ="d-flex space-children-mr justify-content-end " *ngIf =" browserPlatform && contextMenuObject " >
1+ < div class ="d-flex space-children-mr justify-content-end " dsRenderOnlyForBrowser >
22 < ng-container *ngFor ="let entry of (getStandAloneMenuEntries() | async) ">
33 < ng-container *ngComponentOutlet ="entry; injector: objectInjector; "> </ ng-container >
44 </ ng-container >
Original file line number Diff line number Diff line change @@ -48,11 +48,6 @@ export class ContextMenuComponent implements OnInit {
4848 */
4949 public optionCount = 0 ;
5050
51- /**
52- * Flag to check csr rendering
53- */
54- browserPlatform = false ;
55-
5651 /**
5752 * Initialize instance variables
5853 *
@@ -63,13 +58,10 @@ export class ContextMenuComponent implements OnInit {
6358 */
6459 constructor (
6560 @Inject ( DOCUMENT ) private _document : Document ,
66- @Inject ( PLATFORM_ID ) protected platformId : Object ,
6761 private cdr : ChangeDetectorRef ,
6862 private configurationService : ConfigurationDataService ,
6963 private injector : Injector
70- ) {
71- this . browserPlatform = isPlatformBrowser ( this . platformId ) ;
72- }
64+ ) { }
7365
7466 ngOnInit ( ) : void {
7567 this . objectInjector = Injector . create ( {
You can’t perform that action at this time.
0 commit comments