@c8y/ngx-components 1018.0.115 → 1018.0.125
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/context-dashboard/context-dashboard.model.d.ts +5 -0
- package/core/dashboard/dashboard.model.d.ts +5 -0
- package/ecosystem/application-plugins/plugin-list.component.d.ts +1 -1
- package/esm2020/context-dashboard/context-dashboard.component.mjs +3 -3
- package/esm2020/context-dashboard/context-dashboard.model.mjs +1 -1
- package/esm2020/context-dashboard/dashboard-detail.component.mjs +1 -1
- package/esm2020/core/common/group.service.mjs +2 -11
- package/esm2020/core/common/permissions.service.mjs +2 -4
- package/esm2020/core/dashboard/dashboard.model.mjs +1 -1
- package/esm2020/core/dashboard/widgets-dashboard.component.mjs +5 -4
- package/esm2020/core/realtime/measurement-realtime.service.mjs +4 -2
- package/esm2020/device-profile/device-profile.component.mjs +4 -2
- package/esm2020/ecosystem/application-plugins/plugin-list.component.mjs +15 -7
- package/esm2020/sub-assets/add-group/add-group.component.mjs +3 -4
- package/esm2020/sub-assets/sub-assets.component.mjs +2 -5
- package/esm2020/widgets/implementations/kpi/kpi-widget-view/kpi-widget-view.component.mjs +2 -2
- package/fesm2015/c8y-ngx-components-context-dashboard.mjs +2 -2
- package/fesm2015/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-device-profile.mjs +3 -1
- package/fesm2015/c8y-ngx-components-device-profile.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-ecosystem-application-plugins.mjs +14 -8
- package/fesm2015/c8y-ngx-components-ecosystem-application-plugins.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-ecosystem.mjs +14 -8
- package/fesm2015/c8y-ngx-components-ecosystem.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-sub-assets.mjs +3 -7
- package/fesm2015/c8y-ngx-components-sub-assets.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-widgets-implementations-kpi.mjs +1 -1
- package/fesm2015/c8y-ngx-components-widgets-implementations-kpi.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components.mjs +30 -35
- package/fesm2015/c8y-ngx-components.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-context-dashboard.mjs +2 -2
- package/fesm2020/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-device-profile.mjs +3 -1
- package/fesm2020/c8y-ngx-components-device-profile.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-ecosystem-application-plugins.mjs +14 -6
- package/fesm2020/c8y-ngx-components-ecosystem-application-plugins.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-ecosystem.mjs +14 -6
- package/fesm2020/c8y-ngx-components-ecosystem.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-sub-assets.mjs +3 -7
- package/fesm2020/c8y-ngx-components-sub-assets.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-widgets-implementations-kpi.mjs +1 -1
- package/fesm2020/c8y-ngx-components-widgets-implementations-kpi.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components.mjs +30 -35
- package/fesm2020/c8y-ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/widgets/implementations/kpi/kpi-widget-view/kpi-widget-view.component.d.ts +2 -2
|
@@ -536,9 +536,8 @@ class AddGroupComponent {
|
|
|
536
536
|
this.subscription = this.onCancel.subscribe(() => this.resetStepper());
|
|
537
537
|
this.canCreateGroup =
|
|
538
538
|
this.subAssetsService.canCreateGroup() ||
|
|
539
|
-
(yield this.permissionsService.canEdit([
|
|
540
|
-
|
|
541
|
-
skipRolesCheck: true
|
|
539
|
+
(yield this.permissionsService.canEdit(['ROLE_INVENTORY_ADMIN', 'ROLE_INVENTORY_CREATE'], {
|
|
540
|
+
id: this.currentGroupId
|
|
542
541
|
}));
|
|
543
542
|
this.canAssignDevice = yield this.subAssetsService.canAssignDevice({
|
|
544
543
|
id: this.currentGroupId
|
|
@@ -1824,10 +1823,7 @@ class SubAssetsComponent {
|
|
|
1824
1823
|
this.group = Object.assign({}, contextData);
|
|
1825
1824
|
this.title = this.group.name;
|
|
1826
1825
|
this.currentGroupId = this.group.id;
|
|
1827
|
-
this.shouldDisableAddGroup = !(yield this.permissionsService.canEdit([], this.group
|
|
1828
|
-
skipOwnerCheck: true,
|
|
1829
|
-
skipRolesCheck: true
|
|
1830
|
-
}));
|
|
1826
|
+
this.shouldDisableAddGroup = !(yield this.permissionsService.canEdit(['ROLE_INVENTORY_ADMIN', 'ROLE_INVENTORY_CREATE'], this.group));
|
|
1831
1827
|
this.shouldDisableAssignDevices = !(yield this.subAssetsService.canAssignDevice(this.group));
|
|
1832
1828
|
this.customProperties = yield this.subAssetsService.getCustomProperties(this.group);
|
|
1833
1829
|
this.shouldShowAssetsProperties =
|