Skip to content

Commit

Permalink
bugfix: translation and ui changes
Browse files Browse the repository at this point in the history
  • Loading branch information
illia-solovei-s1 committed Nov 29, 2024
1 parent 9ecf075 commit fd51057
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/openscd/src/translations/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export const de: Translations = {
wizard: {
nameHelper: 'Name des IED',
descHelper: 'Beschreibung des IED',
noDescWarning: "Einige S-IEDs können nicht angezeigt werden, da sie kein 'desc'-Attribut haben. Klicken Sie hier und fügen Sie es manuell hinzu.",
noDescWarning: "Warnung! Einige S-IEDs können nicht angezeigt werden, da sie kein „des“-Attribut haben. Klicke hier, um das Attribut manuell hinzuzufügen.",
title: {
edit: 'IED bearbeiten',
delete: 'IED mit Abhängigkeiten entfernen',
Expand Down
2 changes: 1 addition & 1 deletion packages/openscd/src/translations/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export const en = {
wizard: {
nameHelper: 'IED name',
descHelper: 'IED description',
noDescWarning: "Impossible to apply filter for some S-IEDs - missing 'desc' attribute. Manually select and add it here.",
noDescWarning: "Warning! Some S-IEDs cannot be displayed because they do not have a “desc attribute. Click here to add the attribute manually.",
title: {
edit: 'Edit IED',
delete: 'Remove IED with references',
Expand Down
10 changes: 8 additions & 2 deletions packages/plugins/src/editors/IED.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,13 @@ export default class IedPlugin extends LitElement {
return;
}
// const selectedIedNames = e.detail.selectedItems.map(item => {
// const [name] = item.split('__');
// return name;
// });
// console.log("HERE: ", selectedIedNames)
this.lNClassListOpenedOnce = false;
this.selectedIEDs = e.detail.selectedItems;
this.selectedLNClasses = [];
Expand Down Expand Up @@ -282,8 +289,7 @@ export default class IedPlugin extends LitElement {
.missing-desc-banner {
margin-bottom: 16px;
background-color: var(--mdc-theme-error);
color: var(--mdc-theme-on-error);
background-color: #ffcc00;
padding: 8px 16px;
display: flex;
align-items: center;
Expand Down

0 comments on commit fd51057

Please sign in to comment.