@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.
- package/bundles/schneideress-dashboardframework.umd.js +4 -1
- package/bundles/schneideress-dashboardframework.umd.js.map +1 -1
- package/bundles/schneideress-dashboardframework.umd.min.js +1 -1
- package/bundles/schneideress-dashboardframework.umd.min.js.map +1 -1
- package/esm2015/lib/ra-dashboard-area/ra.dashboard.area.js +2 -1
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +3 -2
- package/esm2015/lib/ra.dashboard.service.js +2 -1
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +2 -1
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +3 -2
- package/esm5/lib/ra.dashboard.service.js +2 -1
- package/fesm2015/schneideress-dashboardframework.js +4 -1
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +4 -1
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra.dashboard.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
}
|