From 598988b9f09282b2edf88922b040e24a52e6ca73 Mon Sep 17 00:00:00 2001 From: marcvanraalte <86408026+marcvanraalte@users.noreply.github.com> Date: Tue, 10 Jan 2023 09:08:55 +0100 Subject: [PATCH] fix(../substation/general-equipment-editor.ts):action-icon_is_rendered (#1122) * fix(../substation/general-equipment-editor.ts):action-icon_is_rendered * fix(../substation/general-equipment-editor.ts):adapted_buttons_rendering --- .../substation/general-equipment-editor.ts | 24 +++++++------- .../general-equipment-editor.test.snap.js | 32 +++++++------------ 2 files changed, 23 insertions(+), 33 deletions(-) diff --git a/src/editors/substation/general-equipment-editor.ts b/src/editors/substation/general-equipment-editor.ts index b0142eeb3c..def82a578f 100644 --- a/src/editors/substation/general-equipment-editor.ts +++ b/src/editors/substation/general-equipment-editor.ts @@ -169,21 +169,19 @@ export class GeneralEquipmentEditor extends LitElement { `; return html` - - ${generalConductingEquipmentIcon} + this.openEditWizard()} - > - - + this.remove()} - > - - ${generalConductingEquipmentIcon} + icon="delete" + @click="${() => this.remove()}}" + > `; } diff --git a/test/unit/editors/substation/__snapshots__/general-equipment-editor.test.snap.js b/test/unit/editors/substation/__snapshots__/general-equipment-editor.test.snap.js index 24de62e5f3..56b2224416 100644 --- a/test/unit/editors/substation/__snapshots__/general-equipment-editor.test.snap.js +++ b/test/unit/editors/substation/__snapshots__/general-equipment-editor.test.snap.js @@ -6,28 +6,20 @@ snapshots["Editor web component for GeneralEquipment SCL element rendered as act label="genSub" tabindex="0" > - + + - - - - - - - - - + + + `; /* end snapshot Editor web component for GeneralEquipment SCL element rendered as action icon looks like the latest snapshot */