You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: projects/netgrif-components-core/src/lib/navigation/navigation-double-drawer/abstract-navigation-double-drawer.ts
+29-10Lines changed: 29 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -191,7 +191,9 @@ export abstract class AbstractNavigationDoubleDrawerComponent implements OnInit,
191
191
return;
192
192
}
193
193
this._currentNode=node;
194
-
if(!node)return;
194
+
if(!node){
195
+
return;
196
+
}
195
197
if(node.parentId&&!node.parent){
196
198
if(node.parentId===this._uriService.root.id){
197
199
node.parent=this._uriService.root;
@@ -206,7 +208,13 @@ export abstract class AbstractNavigationDoubleDrawerComponent implements OnInit,
206
208
});
207
209
}
208
210
}
209
-
this.resolveMenuItems(node);
211
+
if(this.nodeLoading$.isActive){
212
+
this.nodeLoading$.subscribe(()=>{
213
+
this.resolveMenuItems(node)
214
+
});
215
+
}else{
216
+
this.resolveMenuItems(node);
217
+
}
210
218
}
211
219
212
220
privateresolveMenuItems(node: UriNodeResource){
@@ -333,15 +341,26 @@ export abstract class AbstractNavigationDoubleDrawerComponent implements OnInit,
0 commit comments