Skip to content

Commit

Permalink
fix(../substation/general-equipment-editor.ts):action-icon_is_rendered (
Browse files Browse the repository at this point in the history
#1122)

* fix(../substation/general-equipment-editor.ts):action-icon_is_rendered

* fix(../substation/general-equipment-editor.ts):adapted_buttons_rendering
  • Loading branch information
marcvanraalte authored Jan 10, 2023
1 parent 2d1464f commit 598988b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 33 deletions.
24 changes: 11 additions & 13 deletions src/editors/substation/general-equipment-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,21 +169,19 @@ export class GeneralEquipmentEditor extends LitElement {
</action-pane>`;

return html`<action-icon label=${this.header}>
<abbr slot="action" title="${translate('edit')}">
<mwc-fab
<mwc-icon slot="icon">${generalConductingEquipmentIcon}</mwc-icon>
<mwc-fab
slot="action"
mini
icon="edit"
@click=${() => this.openEditWizard()}
></mwc-fab
</abbr>
<abbr slot="action" title="${translate('remove')}">
<mwc-fab
icon="edit"
@click="${() => this.openEditWizard()}}"
></mwc-fab>
<mwc-fab
slot="action"
mini
icon="delete"
@click=${() => this.remove()}
></mwc-fab>
</abbr>
<mwc-icon slot="icon">${generalConductingEquipmentIcon}</mwc-icon>
icon="delete"
@click="${() => this.remove()}}"
></mwc-fab>
</action-icon>`;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,20 @@ snapshots["Editor web component for GeneralEquipment SCL element rendered as act
label="genSub"
tabindex="0"
>
<abbr
<mwc-icon slot="icon">
</mwc-icon>
<mwc-fab
icon="edit"
mini=""
slot="action"
title="[edit]"
>
<mwc-fab
icon="edit"
mini=""
>
</mwc-fab>
<abbr
slot="action"
title="[remove]"
>
<mwc-fab
icon="delete"
mini=""
>
</mwc-fab>
</abbr>
<mwc-icon slot="icon">
</mwc-icon>
</abbr>
</mwc-fab>
<mwc-fab
icon="delete"
mini=""
slot="action"
>
</mwc-fab>
</action-icon>
`;
/* end snapshot Editor web component for GeneralEquipment SCL element rendered as action icon looks like the latest snapshot */
Expand Down

0 comments on commit 598988b

Please sign in to comment.