Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(editor/communication): move wizards to wizard library #489

Merged
merged 13 commits into from
Feb 8, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/editors/communication/subnetwork-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,19 @@ export class SubNetworkEditor extends LitElement {
}

private renderIedContainer(): TemplateResult[] {
return Array.from(this.element.querySelectorAll('ConnectedAP') ?? [])
return Array.from(
this.element.querySelectorAll(':scope > ConnectedAP') ?? []
JakobVogelsang marked this conversation as resolved.
Show resolved Hide resolved
)
.map(connAP => connAP.getAttribute('iedName')!)
.filter((v, i, a) => a.indexOf(v) === i)
.sort(compareNames)
.map(
iedName => html` <action-pane id="iedSection" label="${iedName}">
<div id="connApContainer">
${Array.from(
this.element.ownerDocument.querySelectorAll(
`ConnectedAP[iedName="${iedName}"]`
)
this.element.parentElement?.querySelectorAll(
`:scope > SubNetwork > ConnectedAP[iedName="${iedName}"]`
) ?? []
).map(
connectedAP =>
html`<connectedap-editor
Expand Down