@elite.framework/ng.core 2.0.35 → 2.0.36
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.
|
@@ -72,6 +72,9 @@ class RestService {
|
|
|
72
72
|
config = config || {};
|
|
73
73
|
api = api || this.getApiFromStore(config.apiName);
|
|
74
74
|
var moduleName = config.moduleName || '';
|
|
75
|
+
if (moduleName && moduleName != '' && !moduleName.startsWith('/')) {
|
|
76
|
+
moduleName = '/' + moduleName;
|
|
77
|
+
}
|
|
75
78
|
const { method, params, ...options } = request;
|
|
76
79
|
const { observe = "body" /* Rest.Observe.Body */, skipHandleError } = config;
|
|
77
80
|
const url = this.removeDuplicateSlashes(api + moduleName + request.url);
|
|
@@ -2037,7 +2040,7 @@ class FrameworkTitleStrategy extends TitleStrategy {
|
|
|
2037
2040
|
effect(() => {
|
|
2038
2041
|
if (this.langugageChange()) {
|
|
2039
2042
|
// TODO:
|
|
2040
|
-
|
|
2043
|
+
this.updateTitle(this.routerState);
|
|
2041
2044
|
}
|
|
2042
2045
|
});
|
|
2043
2046
|
}
|
|
@@ -2046,7 +2049,7 @@ class FrameworkTitleStrategy extends TitleStrategy {
|
|
|
2046
2049
|
const title = this.buildTitle(routerState);
|
|
2047
2050
|
const projectName = this.localizationService.instant({
|
|
2048
2051
|
key: '::AppName',
|
|
2049
|
-
defaultValue: '', // 'MyProjectName
|
|
2052
|
+
defaultValue: '', // 'MyProjectName // TODO: get from config
|
|
2050
2053
|
});
|
|
2051
2054
|
if (!title) {
|
|
2052
2055
|
return this.title.setTitle(projectName);
|