Skip to content

Commit

Permalink
fixes: Services section tooltip seems incorrect (#1252)
Browse files Browse the repository at this point in the history
* fix: tooltip for ied-container's settings icon

* fix: update tooltip text to account for ports

* test: fixing ied-container snapshot

* chore: adding missing german translations

* Update src/translations/en.ts

Signed-off-by: Sander Jansen <sander.jansen@alliander.com>

Co-authored-by: danyill <danyill@users.noreply.github.com>

---------

Co-authored-by: Sander Jansen <Sander3003@users.noreply.github.com>
Co-authored-by: danyill <danyill@users.noreply.github.com>
  • Loading branch information
3 people committed May 11, 2023
1 parent 04d351f commit f113180
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/editors/ied/access-point-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class AccessPointContainer extends Container {
return html``;
}

return html` <abbr slot="action" title="${translate('settings')}">
return html` <abbr slot="action" title="${translate('iededitor.settings')}">
<mwc-icon-button
icon="settings"
@click=${() => this.openSettingsWizard(services)}
Expand Down
2 changes: 1 addition & 1 deletion src/editors/ied/ied-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class IedContainer extends Container {
return html``;
}

return html` <abbr slot="action" title="${translate('settings')}">
return html` <abbr slot="action" title="${translate('iededitor.settings')}">
<mwc-icon-button
icon="settings"
@click=${() => this.openSettingsWizard(services)}
Expand Down
3 changes: 2 additions & 1 deletion src/translations/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,10 @@ export const de: Translations = {
},
iededitor: {
iedSelector: 'IED auswählen',
lnFilter: '???',
lnFilter: 'Filter für logische Knoten',
missing: 'Kein IED vorhanden',
toggleChildElements: 'Kindelemente umschalten',
settings: 'Services für IED or AccessPoint',
wizard: {
daTitle: 'DA Informationen anzeigen',
doTitle: 'DO Informationen anzeigen',
Expand Down
1 change: 1 addition & 0 deletions src/translations/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ export const en = {
lnFilter: 'Logical Node Filter',
missing: 'No IED',
toggleChildElements: 'Toggle child elements',
settings: 'Show Services the IED/AccessPoint provides',
wizard: {
daTitle: 'Show DA Info',
doTitle: 'Show DO Info',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ snapshots["ied-container looks like the latest snapshot"] =
</abbr>
<abbr
slot="action"
title="[settings]"
title="[iededitor.settings]"
>
<mwc-icon-button icon="settings">
</mwc-icon-button>
Expand Down

0 comments on commit f113180

Please sign in to comment.