Skip to content

Commit

Permalink
fix: goose subscription reflects state incorrectly (openscd#1261)
Browse files Browse the repository at this point in the history
Signed-off-by: Stef3st <steffen.van.den.driest@alliander.com>
  • Loading branch information
Stef3st authored Jun 21, 2023
1 parent de2dd0d commit 4440bff
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/editors/subscription/goose/subscriber-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class SubscriberList extends SubscriberListContainer {

dataSet!.querySelectorAll('FCDA').forEach(fcda => {
subscribedInputs.forEach(inputs => {
if (getExtRef(inputs, fcda, this.currentSelectedGseControl)) {
if (getExtRef(inputs, fcda, control)) {
numberOfLinkedExtRefs++;
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ snapshots["GOOSE subscriber plugin in Subscriber view with a selected IED the le
aria-disabled="false"
noninteractive=""
tabindex="-1"
value="IED1>>CircuitBreaker_CB1>GCB"
value=""
>
<span>
[subscription.subscriber.partiallySubscribed]
Expand All @@ -870,21 +870,18 @@ snapshots["GOOSE subscriber plugin in Subscriber view with a selected IED the le
<mwc-list-item
aria-disabled="false"
graphic="avatar"
mwc-list-item=""
tabindex="0"
noninteractive=""
tabindex="-1"
>
<span>
GCB (IED1)
[subscription.none]
</span>
<mwc-icon slot="graphic">
add
</mwc-icon>
</mwc-list-item>
<mwc-list-item
aria-disabled="false"
noninteractive=""
tabindex="-1"
value="IED4>>CircuitBreaker_CB1>GCB"
value="IED1>>CircuitBreaker_CB1>GCB IED4>>CircuitBreaker_CB1>GCB"
>
<span>
[subscription.subscriber.availableToSubscribe]
Expand All @@ -895,6 +892,19 @@ snapshots["GOOSE subscriber plugin in Subscriber view with a selected IED the le
role="separator"
>
</li>
<mwc-list-item
aria-disabled="false"
graphic="avatar"
mwc-list-item=""
tabindex="0"
>
<span>
GCB (IED1)
</span>
<mwc-icon slot="graphic">
add
</mwc-icon>
</mwc-list-item>
<mwc-list-item
aria-disabled="false"
graphic="avatar"
Expand Down Expand Up @@ -991,10 +1001,9 @@ snapshots["GOOSE subscriber plugin in Subscriber view with a selected IED for un
</li>
<mwc-list-item
aria-disabled="false"
aria-selected="true"
aria-selected="false"
graphic="avatar"
mwc-list-item=""
selected=""
tabindex="-1"
>
<span>
Expand Down Expand Up @@ -1193,8 +1202,10 @@ snapshots["GOOSE subscriber plugin in Subscriber view with a selected IED for pa
</li>
<mwc-list-item
aria-disabled="false"
aria-selected="true"
graphic="avatar"
mwc-list-item=""
selected=""
tabindex="-1"
>
<span>
Expand Down

0 comments on commit 4440bff

Please sign in to comment.