@dative-gpi/foundation-core-domain 1.1.25 → 1.1.27

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.
@@ -75,15 +75,22 @@ export class DeviceExplorerElementInfos {
75
75
  this.worstAlert = params.worstAlert ? new DeviceOrganisationAlert(params.worstAlert) : null;
76
76
  }
77
77
 
78
- static fromDeviceOrganisation = (deviceOrganisation: DeviceOrganisationInfos): DeviceExplorerElementInfos => new DeviceExplorerElementInfos({
79
- ...deviceOrganisation,
80
- type: DeviceExplorerElementType.DeviceOrganisation,
81
- parentId: deviceOrganisation.groupId,
82
- status: null,
83
- connectivity: null,
84
- alerts: null,
85
- worstAlert: null
86
- });
78
+ static fromDeviceOrganisation = (deviceOrganisation: DeviceOrganisationInfos): DeviceExplorerElementInfos => {
79
+ const element = new DeviceExplorerElementInfos({
80
+ ...deviceOrganisation,
81
+ type: DeviceExplorerElementType.DeviceOrganisation,
82
+ parentId: deviceOrganisation.groupId,
83
+ status: null,
84
+ connectivity: null,
85
+ alerts: null,
86
+ worstAlert: null
87
+ });
88
+ element.status = deviceOrganisation.status;
89
+ element.connectivity = deviceOrganisation.connectivity;
90
+ element.alerts = deviceOrganisation.alerts;
91
+ element.worstAlert = deviceOrganisation.worstAlert;
92
+ return element;
93
+ };
87
94
 
88
95
  static fromGroup = (group: GroupInfos): DeviceExplorerElementInfos => new DeviceExplorerElementInfos({
89
96
  ...group,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "url": "https://github.com/Dative-GPI/foundation-shared-ui.git"
5
5
  },
6
6
  "sideEffects": false,
7
- "version": "1.1.25",
7
+ "version": "1.1.27",
8
8
  "description": "",
9
9
  "publishConfig": {
10
10
  "access": "public"
@@ -13,8 +13,8 @@
13
13
  "author": "",
14
14
  "license": "ISC",
15
15
  "dependencies": {
16
- "@dative-gpi/foundation-shared-domain": "1.1.25",
17
- "@dative-gpi/foundation-shared-services": "1.1.25"
16
+ "@dative-gpi/foundation-shared-domain": "1.1.27",
17
+ "@dative-gpi/foundation-shared-services": "1.1.27"
18
18
  },
19
- "gitHead": "446431fe0419f110f86f25393e424eee6f859cde"
19
+ "gitHead": "1e1e9549bef3d954eda8ea06c92a271c860a7c47"
20
20
  }