@c8y/ng1-modules 1022.4.10 → 1022.4.15

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.
@@ -208,6 +208,8 @@
208
208
  <div
209
209
  class="p-r-8 text-right showOnHover col-1"
210
210
  ng-if="isEditable(rule)"
211
+ c8y-if-allowed
212
+ any-role="['ROLE_RETENTION_RULE_ADMIN']"
211
213
  >
212
214
  <button
213
215
  class="btn btn-dot btn-dot--danger hidden-xs"
@@ -228,6 +230,8 @@
228
230
  title="{{ 'Delete' | translate }}"
229
231
  type="button"
230
232
  data-ng-click="removeWithConfirmation(rule);$event.stopPropagation()"
233
+ c8y-if-allowed
234
+ any-role="['ROLE_RETENTION_RULE_ADMIN']"
231
235
  >
232
236
  <i c8y-icon="delete"></i>
233
237
  {{ 'Delete' | translate }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c8y/ng1-modules",
3
- "version": "1022.4.10",
3
+ "version": "1022.4.15",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Cumulocity",
6
6
  "description": "AngularJS modules for Cumulocity IoT applications.",
@@ -33,13 +33,14 @@
33
33
  </button>
34
34
  </c8y-if-allowed>
35
35
  </li>
36
- <li ng-if="getLinkToDM()">
36
+ <li ng-show="getLinkToDM()">
37
37
  <c8y-if-allowed any-app="['devicemanagement']">
38
38
  <a
39
39
  class="btn btn-link"
40
40
  title="{{ 'Open in Device Management' | translate }}"
41
41
  type="button"
42
42
  target="_blank"
43
+ data-cy="smart-rules-list--open-in-device-management-link"
43
44
  rel="noopener noreferrer"
44
45
  ng-href="{{ getLinkToDM() }}"
45
46
  >