@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
|
@@ -17,6 +17,7 @@ var RaDashboardService = /** @class */ (function (_super) {
|
|
|
17
17
|
function RaDashboardService(injector) {
|
|
18
18
|
var _this = _super.call(this, injector, '') || this;
|
|
19
19
|
_this.loadedScripts = [];
|
|
20
|
+
_this.clientId = undefined;
|
|
20
21
|
return _this;
|
|
21
22
|
}
|
|
22
23
|
/*
|
|
@@ -585,6 +586,7 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
585
586
|
this.widgetList = [];
|
|
586
587
|
this.dashboardService.getWidgetsByDashboardArea(widgetInfo, this.appConfig).subscribe(function (widgets) {
|
|
587
588
|
_this.userWidgets = widgets;
|
|
589
|
+
_this.dashboardService.clientId = widgets[0].clientId;
|
|
588
590
|
_this.PAMWidgets = [];
|
|
589
591
|
widgets.forEach(function (element) {
|
|
590
592
|
var settings = undefined;
|
|
@@ -1695,7 +1697,8 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1695
1697
|
RAWidgetContainer.prototype.getwidgetTitleTranslation = function (item) {
|
|
1696
1698
|
var rKey = 'DBW_' + this.translateService.makeCode(item);
|
|
1697
1699
|
var translatedString = '';
|
|
1698
|
-
|
|
1700
|
+
var translationModule = this.dashboardService.clientId + '_DBW';
|
|
1701
|
+
translatedString = this.translateService.translate(translationModule + '.' + rKey);
|
|
1699
1702
|
if (translatedString.toLowerCase() === rKey.toLowerCase()) {
|
|
1700
1703
|
return item;
|
|
1701
1704
|
}
|