@elite.framework/ng.core 2.0.34 → 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,9 +72,12 @@ 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
- const url = this.removeDuplicateSlashes(moduleName + api + request.url);
80
+ const url = this.removeDuplicateSlashes(api + moduleName + request.url);
78
81
  const httpClient = this.getHttpClient(config.skipAddingHeader ?? false);
79
82
  return httpClient
80
83
  .request(method, url, {
@@ -2037,7 +2040,7 @@ class FrameworkTitleStrategy extends TitleStrategy {
2037
2040
  effect(() => {
2038
2041
  if (this.langugageChange()) {
2039
2042
  // TODO:
2040
- // this.updateTitle(this.routerState);
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);