@schneideress/dashboardframework 0.0.270 → 0.0.271

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.
@@ -228,6 +228,7 @@
228
228
  function RaDashboardService(injector) {
229
229
  var _this = _super.call(this, injector, '') || this;
230
230
  _this.loadedScripts = [];
231
+ _this.clientId = undefined;
231
232
  return _this;
232
233
  }
233
234
  /*
@@ -796,6 +797,7 @@
796
797
  this.widgetList = [];
797
798
  this.dashboardService.getWidgetsByDashboardArea(widgetInfo, this.appConfig).subscribe(function (widgets) {
798
799
  _this.userWidgets = widgets;
800
+ _this.dashboardService.clientId = widgets[0].clientId;
799
801
  _this.PAMWidgets = [];
800
802
  widgets.forEach(function (element) {
801
803
  var settings = undefined;
@@ -1906,7 +1908,8 @@
1906
1908
  RAWidgetContainer.prototype.getwidgetTitleTranslation = function (item) {
1907
1909
  var rKey = 'DBW_' + this.translateService.makeCode(item);
1908
1910
  var translatedString = '';
1909
- translatedString = this.translateService.translate('Common.' + rKey);
1911
+ var translationModule = this.dashboardService.clientId + '_DBW';
1912
+ translatedString = this.translateService.translate(translationModule + '.' + rKey);
1910
1913
  if (translatedString.toLowerCase() === rKey.toLowerCase()) {
1911
1914
  return item;
1912
1915
  }