Skip to content

Commit 42bbbdf

Browse files
committed
fix: remove vestigial bottom nav
1 parent 7af458e commit 42bbbdf

File tree

1 file changed

+0
-111
lines changed

1 file changed

+0
-111
lines changed

oscd-editor-sld.ts

Lines changed: 0 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,117 +1036,6 @@ export default class OscdEditorSLD extends LitElement {
10361036
this.rotateElement(detail)}
10371037
></sld-editor>`,
10381038
)}
1039-
<nav>
1040-
${
1041-
Array.from(this.doc.documentElement.children).find(
1042-
c => c.tagName === 'Substation',
1043-
)
1044-
? html``
1045-
: nothing
1046-
}${
1047-
Array.from(
1048-
this.doc.querySelectorAll(
1049-
':root > Substation > VoltageLevel > Bay',
1050-
),
1051-
).find(bay => !isBusBar(bay))
1052-
? eqTypes
1053-
.map(
1054-
eqType =>
1055-
html`<mwc-fab
1056-
mini
1057-
label="Add ${eqType}"
1058-
@click=${() => {
1059-
const element =
1060-
this.templateElements.ConductingEquipment!.cloneNode() as Element;
1061-
element.setAttribute('type', eqType);
1062-
this.startPlacing(element);
1063-
}}
1064-
style="--mdc-theme-secondary: #fff; --mdc-theme-on-secondary: rgb(0, 0, 0 / 0.83)"
1065-
>${equipmentIcon(eqType)}</mwc-fab
1066-
>`,
1067-
)
1068-
.concat()
1069-
: nothing
1070-
}${
1071-
this.doc.querySelector(':root > Substation > VoltageLevel')
1072-
? html`<mwc-fab
1073-
mini
1074-
icon="horizontal_rule"
1075-
@click=${() => {
1076-
const element = this.templateElements.BusBar!.cloneNode(
1077-
true,
1078-
) as Element;
1079-
this.startPlacing(element);
1080-
}}
1081-
label="Add Bus Bar"
1082-
style="--mdc-theme-secondary: #fff; --mdc-theme-on-secondary: rgb(0, 0, 0 / 0.83)"
1083-
>
1084-
</mwc-fab
1085-
><mwc-fab
1086-
mini
1087-
label="Add Bay"
1088-
@click=${() => {
1089-
const element =
1090-
this.templateElements.Bay!.cloneNode() as Element;
1091-
this.startPlacing(element);
1092-
}}
1093-
style="--mdc-theme-secondary: #12579B;"
1094-
>
1095-
${bayIcon}
1096-
</mwc-fab>`
1097-
: nothing
1098-
}${
1099-
Array.from(this.doc.documentElement.children).find(
1100-
c => c.tagName === 'Substation',
1101-
)
1102-
? html`<mwc-fab
1103-
mini
1104-
label="Add VoltageLevel"
1105-
@click=${() => {
1106-
const element =
1107-
this.templateElements.VoltageLevel!.cloneNode() as Element;
1108-
this.startPlacing(element);
1109-
}}
1110-
style="--mdc-theme-secondary: #F5E214; --mdc-theme-on-secondary: rgb(0, 0, 0 / 0.83);"
1111-
>
1112-
${voltageLevelIcon}
1113-
</mwc-fab>`
1114-
: nothing
1115-
}<mwc-fab
1116-
mini
1117-
icon="margin"
1118-
@click=${() => this.insertSubstation()}
1119-
label="Add Substation"
1120-
style="--mdc-theme-secondary: #BB1326;"
1121-
>
1122-
</mwc-fab
1123-
><mwc-icon-button
1124-
icon="zoom_in"
1125-
label="Zoom In"
1126-
@click=${() => this.zoomIn()}
1127-
>
1128-
</mwc-icon-button
1129-
><mwc-icon-button
1130-
icon="zoom_out"
1131-
label="Zoom Out"
1132-
@click=${() => this.zoomOut()}
1133-
>
1134-
</mwc-icon-button
1135-
>${
1136-
this.placing ||
1137-
this.resizingBR ||
1138-
this.resizingTL ||
1139-
this.connecting ||
1140-
this.placingLabel
1141-
? html`<mwc-icon-button
1142-
icon="close"
1143-
label="Cancel action"
1144-
@click=${() => this.reset()}
1145-
>
1146-
</mwc-icon-button>`
1147-
: nothing
1148-
}
1149-
</nav>
11501039
</main>
11511040
${staticHtml`<mwc-dialog id="about" heading="About">
11521041
<div>${unsafeStatic(aboutContent)}</div>

0 commit comments

Comments
 (0)