Skip to content

Commit

Permalink
fix: do and da wizard lnclass textfield correction (#1444)
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 committed Feb 19, 2024
1 parent 9d08746 commit ad08ff2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/open-scd/src/editors/ied/da-wizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function renderFields(
`,
html`
<mwc-textfield
label="${translate('iededitor.wizard.lnDescription')}"
label="${translate('scl.lnClass')}"
value="${logicalNodeElement
? nsdoc.getDataDescription(logicalNodeElement, ancestors).label
: '-'}"
Expand Down
2 changes: 1 addition & 1 deletion packages/open-scd/src/editors/ied/do-wizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function renderFields(
`,
html`
<mwc-textfield
label="${translate('iededitor.wizard.lnDescription')}"
label="${translate('scl.lnClass')}"
value="${logicalNodeElement
? nsdoc.getDataDescription(logicalNodeElement, ancestors).label
: '-'}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ snapshots["with no ancestors looks like the latest snapshot"] =
<mwc-textfield
disabled=""
id="lnPrefix"
label="[iededitor.wizard.lnDescription]"
label="[scl.lnClass]"
readonly=""
value="-"
>
Expand Down Expand Up @@ -225,7 +225,7 @@ snapshots["with a DA element looks like the latest snapshot"] =
<mwc-textfield
disabled=""
id="lnPrefix"
label="[iededitor.wizard.lnDescription]"
label="[scl.lnClass]"
readonly=""
value="XCBR"
>
Expand Down Expand Up @@ -362,7 +362,7 @@ snapshots["with a BDA element looks like the latest snapshot"] =
<mwc-textfield
disabled=""
id="lnPrefix"
label="[iededitor.wizard.lnDescription]"
label="[scl.lnClass]"
readonly=""
value="LPHD"
>
Expand Down Expand Up @@ -499,7 +499,7 @@ snapshots["with a DA element and DAI Element looks like the latest snapshot"] =
<mwc-textfield
disabled=""
id="lnPrefix"
label="[iededitor.wizard.lnDescription]"
label="[scl.lnClass]"
readonly=""
value="XCBR"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ snapshots["with no ancestors looks like the latest snapshot"] =
<mwc-textfield
disabled=""
id="lnPrefix"
label="[iededitor.wizard.lnDescription]"
label="[scl.lnClass]"
readonly=""
value="-"
>
Expand Down Expand Up @@ -159,7 +159,7 @@ snapshots["with a DO element looks like the latest snapshot"] =
<mwc-textfield
disabled=""
id="lnPrefix"
label="[iededitor.wizard.lnDescription]"
label="[scl.lnClass]"
readonly=""
value="Some LN title (LLN0)"
>
Expand Down Expand Up @@ -263,7 +263,7 @@ snapshots["with a DO element and DOI Element looks like the latest snapshot"] =
<mwc-textfield
disabled=""
id="lnPrefix"
label="[iededitor.wizard.lnDescription]"
label="[scl.lnClass]"
readonly=""
value="CSWI"
>
Expand Down

0 comments on commit ad08ff2

Please sign in to comment.