@indice/ng-components 0.2.65 → 0.2.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/indice-ng-components.umd.js +13 -1
- package/bundles/indice-ng-components.umd.js.map +1 -1
- package/esm2015/lib/layouts/shell/shell-header/shell-header.component.js +15 -2
- package/fesm2015/indice-ng-components.js +14 -2
- package/fesm2015/indice-ng-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -1944,7 +1944,19 @@
|
|
|
1944
1944
|
};
|
|
1945
1945
|
ShellHeaderComponent.prototype.ngOnInit = function () {
|
|
1946
1946
|
var _this = this;
|
|
1947
|
-
|
|
1947
|
+
var obsLinks = this.links[this.sectionLinksPath];
|
|
1948
|
+
if (obsLinks) {
|
|
1949
|
+
if (rxjs.isObservable(obsLinks)) {
|
|
1950
|
+
this.sectionLinks = obsLinks;
|
|
1951
|
+
}
|
|
1952
|
+
else {
|
|
1953
|
+
this.sectionLinks = rxjs.of(obsLinks);
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
else {
|
|
1957
|
+
this.sectionLinks = rxjs.of([]);
|
|
1958
|
+
}
|
|
1959
|
+
// this.sectionLinks = this.links[this.sectionLinksPath] as NavLink[] | Observable<NavLink[]>;
|
|
1948
1960
|
this.routerSub$ = this.routeSubject.subscribe(function (event) {
|
|
1949
1961
|
_this.mobileMenuExpanded = false;
|
|
1950
1962
|
_this.userMenuExpanded = false;
|