@open-rlb/ng-app 3.1.52 → 3.1.53
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.
|
@@ -755,7 +755,11 @@ class AppsService {
|
|
|
755
755
|
}
|
|
756
756
|
const qp = new URLSearchParams(route.snapshot.queryParams).toString();
|
|
757
757
|
const url = currentPath + (qp ? `?${qp}` : '');
|
|
758
|
-
const viewMode =
|
|
758
|
+
const viewMode = appToSelect
|
|
759
|
+
? appToSelect.viewMode
|
|
760
|
+
: this.getAppViewMode(route)
|
|
761
|
+
? 'settings'
|
|
762
|
+
: 'app';
|
|
759
763
|
this.selectApp(appToSelect, viewMode, url);
|
|
760
764
|
}
|
|
761
765
|
findDeepestChild(route) {
|
|
@@ -773,8 +777,8 @@ class AppsService {
|
|
|
773
777
|
return null;
|
|
774
778
|
}
|
|
775
779
|
}
|
|
776
|
-
|
|
777
|
-
return route.routeConfig?.path?.includes('settings')
|
|
780
|
+
getAppViewMode(route) {
|
|
781
|
+
return route.routeConfig?.path?.includes('settings') ? 'settings' : 'app';
|
|
778
782
|
}
|
|
779
783
|
isDefaultRoute(route) {
|
|
780
784
|
return DEFAULT_ROUTES_CONFIG.some(r => r.path.includes(route));
|