File tree Expand file tree Collapse file tree 3 files changed +71
-49
lines changed
test/unit/editors/cleanup/__snapshots__ Expand file tree Collapse file tree 3 files changed +71
-49
lines changed Original file line number Diff line number Diff line change @@ -170,6 +170,18 @@ export class CleanupControlBlocks extends LitElement {
170
170
> <span class= "unreferencedControl"
171
171
> ${ controlBlock . getAttribute ( 'name' ) ! }
172
172
</ span>
173
+ <span>
174
+ <mwc- icon- butto n
175
+ label= "warning"
176
+ icon = "warning_amber"
177
+ class= "cautionItem"
178
+ title= "${ translate (
179
+ 'cleanup.unreferencedControls.addressDefinitionTooltip'
180
+ ) } "
181
+ ?dis abled= "${ ! ( getCommAddress ( controlBlock ) !== null ) } "
182
+ >
183
+ </ mwc- icon- butto n>
184
+ </ span>
173
185
<span>
174
186
<mwc- icon- butto n
175
187
label= "Edit"
@@ -196,18 +208,6 @@ export class CleanupControlBlocks extends LitElement {
196
208
} }
197
209
> </ mwc- icon- butto n>
198
210
</ span>
199
- <span>
200
- <mwc- icon- butto n
201
- label= "warning"
202
- icon = "warning_amber"
203
- class= "cautionItem"
204
- title= "${ translate (
205
- 'cleanup.unreferencedControls.addressDefinitionTooltip'
206
- ) } "
207
- ?dis abled= "${ ! ( getCommAddress ( controlBlock ) !== null ) } "
208
- >
209
- </ mwc- icon- butto n>
210
- </ span>
211
211
<span slot= "secondary"
212
212
> ${ controlBlock . tagName } -
213
213
${ controlBlock . closest ( 'IED' ) ?. getAttribute ( 'name' ) }
@@ -352,6 +352,17 @@ export class CleanupControlBlocks extends LitElement {
352
352
--mdc-icon-size : 16px ;
353
353
}
354
354
355
+ .editItem {
356
+ visibility : hidden;
357
+ opacity : 0 ;
358
+ }
359
+
360
+ .cleanupListItem : hover .editItem {
361
+ visibility : visible;
362
+ opacity : 1 ;
363
+ transition : visibility 0s , opacity 0.5s linear;
364
+ }
365
+
355
366
.cautionItem {
356
367
color : var (--yellow );
357
368
}
Original file line number Diff line number Diff line change @@ -206,6 +206,17 @@ export class CleanupDatasets extends LitElement {
206
206
--mdc-icon-size : 16px ;
207
207
}
208
208
209
+ .editItem {
210
+ visibility : hidden;
211
+ opacity : 0 ;
212
+ }
213
+
214
+ .checkListItem : hover .editItem {
215
+ visibility : visible;
216
+ opacity : 1 ;
217
+ transition : visibility 0s , opacity 0.5s linear;
218
+ }
219
+
209
220
.cleanupDeleteButton {
210
221
float : right;
211
222
}
Original file line number Diff line number Diff line change @@ -132,14 +132,6 @@ snapshots["Cleanup: Control Blocks Container With a test file loaded looks like
132
132
<span class="unreferencedControl">
133
133
GCB2_NP
134
134
</span>
135
- <span>
136
- <mwc-icon-button
137
- class="editItem"
138
- icon="edit"
139
- label="Edit"
140
- >
141
- </mwc-icon-button>
142
- </span>
143
135
<span>
144
136
<mwc-icon-button
145
137
class="cautionItem"
@@ -150,6 +142,14 @@ snapshots["Cleanup: Control Blocks Container With a test file loaded looks like
150
142
>
151
143
</mwc-icon-button>
152
144
</span>
145
+ <span>
146
+ <mwc-icon-button
147
+ class="editItem"
148
+ icon="edit"
149
+ label="Edit"
150
+ >
151
+ </mwc-icon-button>
152
+ </span>
153
153
<span slot="secondary">
154
154
GSEControl -
155
155
IED1
@@ -174,18 +174,18 @@ snapshots["Cleanup: Control Blocks Container With a test file loaded looks like
174
174
</span>
175
175
<span>
176
176
<mwc-icon-button
177
- class="editItem"
178
- icon="edit"
179
- label="Edit"
177
+ class="cautionItem"
178
+ icon="warning_amber"
179
+ label="warning"
180
+ title="[cleanup.unreferencedControls.addressDefinitionTooltip]"
180
181
>
181
182
</mwc-icon-button>
182
183
</span>
183
184
<span>
184
185
<mwc-icon-button
185
- class="cautionItem"
186
- icon="warning_amber"
187
- label="warning"
188
- title="[cleanup.unreferencedControls.addressDefinitionTooltip]"
186
+ class="editItem"
187
+ icon="edit"
188
+ label="Edit"
189
189
>
190
190
</mwc-icon-button>
191
191
</span>
@@ -213,20 +213,20 @@ snapshots["Cleanup: Control Blocks Container With a test file loaded looks like
213
213
</span>
214
214
<span>
215
215
<mwc-icon-button
216
- class="editItem "
216
+ class="cautionItem "
217
217
disabled=""
218
- icon="edit"
219
- label="Edit"
218
+ icon="warning_amber"
219
+ label="warning"
220
+ title="[cleanup.unreferencedControls.addressDefinitionTooltip]"
220
221
>
221
222
</mwc-icon-button>
222
223
</span>
223
224
<span>
224
225
<mwc-icon-button
225
- class="cautionItem "
226
+ class="editItem "
226
227
disabled=""
227
- icon="warning_amber"
228
- label="warning"
229
- title="[cleanup.unreferencedControls.addressDefinitionTooltip]"
228
+ icon="edit"
229
+ label="Edit"
230
230
>
231
231
</mwc-icon-button>
232
232
</span>
@@ -252,14 +252,6 @@ snapshots["Cleanup: Control Blocks Container With a test file loaded looks like
252
252
<span class="unreferencedControl">
253
253
ReportCb
254
254
</span>
255
- <span>
256
- <mwc-icon-button
257
- class="editItem"
258
- icon="edit"
259
- label="Edit"
260
- >
261
- </mwc-icon-button>
262
- </span>
263
255
<span>
264
256
<mwc-icon-button
265
257
class="cautionItem"
@@ -270,6 +262,14 @@ snapshots["Cleanup: Control Blocks Container With a test file loaded looks like
270
262
>
271
263
</mwc-icon-button>
272
264
</span>
265
+ <span>
266
+ <mwc-icon-button
267
+ class="editItem"
268
+ icon="edit"
269
+ label="Edit"
270
+ >
271
+ </mwc-icon-button>
272
+ </span>
273
273
<span slot="secondary">
274
274
ReportControl -
275
275
IED2
@@ -294,18 +294,18 @@ snapshots["Cleanup: Control Blocks Container With a test file loaded looks like
294
294
</span>
295
295
<span>
296
296
<mwc-icon-button
297
- class="editItem"
298
- icon="edit"
299
- label="Edit"
297
+ class="cautionItem"
298
+ icon="warning_amber"
299
+ label="warning"
300
+ title="[cleanup.unreferencedControls.addressDefinitionTooltip]"
300
301
>
301
302
</mwc-icon-button>
302
303
</span>
303
304
<span>
304
305
<mwc-icon-button
305
- class="cautionItem"
306
- icon="warning_amber"
307
- label="warning"
308
- title="[cleanup.unreferencedControls.addressDefinitionTooltip]"
306
+ class="editItem"
307
+ icon="edit"
308
+ label="Edit"
309
309
>
310
310
</mwc-icon-button>
311
311
</span>
You can’t perform that action at this time.
0 commit comments