@c8y/ng1-modules 1018.53.0 → 1018.55.0
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.
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
class="form-control"
|
|
10
10
|
placeholder="{{ 'Search command by name or text' | translate }}"
|
|
11
11
|
ng-model="commandsFilter.text"
|
|
12
|
+
data-cy="commandTemplates--search-command"
|
|
12
13
|
/>
|
|
13
14
|
<span class="input-group-addon">
|
|
14
15
|
<i c8y-icon="search" ng-hide="commandsFilter.text.length"></i>
|
|
@@ -17,6 +18,7 @@
|
|
|
17
18
|
ng-show="commandsFilter.text.length"
|
|
18
19
|
ng-click="commandsFilter.text=''"
|
|
19
20
|
title="{{ 'Clear`input`' | translate }}"
|
|
21
|
+
data-cy="commandTemplates--icon-search"
|
|
20
22
|
></i>
|
|
21
23
|
</span>
|
|
22
24
|
</div>
|
|
@@ -28,6 +30,7 @@
|
|
|
28
30
|
title="{{ 'Create a new command template' | translate }}"
|
|
29
31
|
type="button"
|
|
30
32
|
ng-show="vm.canWrite && !vm.newCommandTemplate"
|
|
33
|
+
data-cy="commandTemplates--new-command-template"
|
|
31
34
|
>
|
|
32
35
|
<i c8y-icon="plus-circle"></i>
|
|
33
36
|
{{ 'New template' | translate }}
|
|
@@ -44,6 +47,7 @@
|
|
|
44
47
|
required
|
|
45
48
|
class="form-control"
|
|
46
49
|
ng-model="vm.newCommandTemplate.name"
|
|
50
|
+
data-cy="commandTemplates--predefined-command-name"
|
|
47
51
|
/>
|
|
48
52
|
</div>
|
|
49
53
|
<div class="form-group">
|
|
@@ -53,6 +57,7 @@
|
|
|
53
57
|
required
|
|
54
58
|
class="form-control"
|
|
55
59
|
ng-model="vm.newCommandTemplate.category"
|
|
60
|
+
data-cy="commandTemplates--predefined-command-category"
|
|
56
61
|
/>
|
|
57
62
|
</div>
|
|
58
63
|
<div class="form-group">
|
|
@@ -63,6 +68,7 @@
|
|
|
63
68
|
class="form-control"
|
|
64
69
|
rows="1"
|
|
65
70
|
ng-model="vm.newCommandTemplate.command"
|
|
71
|
+
data-cy="commandTemplates--command-template"
|
|
66
72
|
></textarea>
|
|
67
73
|
</div>
|
|
68
74
|
<div class="form-group">
|
|
@@ -100,6 +106,7 @@
|
|
|
100
106
|
class="list-item-actions"
|
|
101
107
|
ng-if="commandTemplate.id && vm.canWrite"
|
|
102
108
|
ng-click="$event.stopPropagation()"
|
|
109
|
+
data-cy="commandTemplates--list-item-dropdown"
|
|
103
110
|
>
|
|
104
111
|
<div
|
|
105
112
|
class="dropdown settings"
|
|
@@ -195,6 +202,7 @@
|
|
|
195
202
|
ng-click="vm.save()"
|
|
196
203
|
ng-disabled="vm.forms.newCommandForm.$invalid"
|
|
197
204
|
ng-show="vm.newCommandTemplate"
|
|
205
|
+
data-cy="commandTemplates--save"
|
|
198
206
|
>
|
|
199
207
|
{{ 'Save' | translate }}
|
|
200
208
|
</button>
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
<div
|
|
2
|
-
class="c8y-list__group m-b-24"
|
|
3
|
-
>
|
|
1
|
+
<div class="c8y-list__group m-b-24">
|
|
4
2
|
<div
|
|
5
3
|
class="page-sticky-header c8y-list__item hidden-xs"
|
|
6
4
|
ng-if="vm.protocols.length && (vm.protocols | filter: vm.filter).length"
|
|
@@ -31,10 +29,7 @@
|
|
|
31
29
|
</div>
|
|
32
30
|
</div>
|
|
33
31
|
|
|
34
|
-
<div
|
|
35
|
-
class="c8y-list__item"
|
|
36
|
-
ng-repeat="protocol in vm.protocols | orderBy:['name', vm.getTitle]"
|
|
37
|
-
>
|
|
32
|
+
<div class="c8y-list__item" ng-repeat="protocol in vm.protocols | orderBy:['name', vm.getTitle]">
|
|
38
33
|
<div class="c8y-list__item__block">
|
|
39
34
|
<div class="c8y-list__item__icon">
|
|
40
35
|
<i c8y-icon="{{ vm.CONFIG.icon }}"></i>
|
|
@@ -50,10 +45,11 @@
|
|
|
50
45
|
{{ ::vm.getTitle(protocol) }}
|
|
51
46
|
</span>
|
|
52
47
|
<button
|
|
53
|
-
ng-if="::!vm.isReadOnly(protocol)"
|
|
54
48
|
class="btn-clean text-truncate"
|
|
55
|
-
|
|
49
|
+
type="button"
|
|
56
50
|
title="{{::vm.getTitle(protocol)}}"
|
|
51
|
+
ng-click="vm.edit(protocol)"
|
|
52
|
+
ng-if="::!vm.isReadOnly(protocol)"
|
|
57
53
|
>
|
|
58
54
|
{{::vm.getTitle(protocol)}}
|
|
59
55
|
</button>
|
|
@@ -86,6 +82,7 @@
|
|
|
86
82
|
<span class="dropdown" uib-dropdown>
|
|
87
83
|
<button
|
|
88
84
|
class="dropdown-toggle c8y-dropdown"
|
|
85
|
+
type="button"
|
|
89
86
|
title="{{ 'Actions' | translate }}"
|
|
90
87
|
uib-dropdown-toggle
|
|
91
88
|
aria-haspopup="true"
|
|
@@ -94,14 +91,18 @@
|
|
|
94
91
|
</button>
|
|
95
92
|
<ul class="dropdown-menu dropdown-menu-right" uib-dropdown-menu>
|
|
96
93
|
<li ng-if="::!vm.isReadOnly(protocol)">
|
|
97
|
-
<button title="{{ 'Edit' | translate }}" ng-click="vm.edit(protocol)">
|
|
94
|
+
<button type="button" title="{{ 'Edit' | translate }}" ng-click="vm.edit(protocol)">
|
|
98
95
|
<i c8y-icon="edit"></i>
|
|
99
96
|
{{ 'Edit' | translate }}
|
|
100
97
|
</button>
|
|
101
98
|
</li>
|
|
102
99
|
<li>
|
|
103
|
-
<button
|
|
104
|
-
|
|
100
|
+
<button
|
|
101
|
+
type="button"
|
|
102
|
+
title="{{ 'Delete' | translate }}"
|
|
103
|
+
ng-click="vm.remove(protocol)"
|
|
104
|
+
>
|
|
105
|
+
<i c8y-icon="delete"></i>
|
|
105
106
|
{{ 'Delete' | translate }}
|
|
106
107
|
</button>
|
|
107
108
|
</li>
|
|
@@ -109,7 +110,11 @@
|
|
|
109
110
|
ng-repeat="action in vm.getProtocolActionsMemoized(protocol)"
|
|
110
111
|
ng-if="::!vm.isReadOnly(protocol)"
|
|
111
112
|
>
|
|
112
|
-
<button
|
|
113
|
+
<button
|
|
114
|
+
type="button"
|
|
115
|
+
title="{{ action.label | translate }}"
|
|
116
|
+
ng-click="action.execute(protocol)"
|
|
117
|
+
>
|
|
113
118
|
<i c8y-icon="{{ action.icon }}"></i>
|
|
114
119
|
{{ action.label | translate }}
|
|
115
120
|
</button>
|