From fd510576d15541d951cd44283cbdcd91877dc8f7 Mon Sep 17 00:00:00 2001 From: Illia Solovei Date: Fri, 29 Nov 2024 16:11:56 +0100 Subject: [PATCH] bugfix: translation and ui changes --- packages/openscd/src/translations/de.ts | 2 +- packages/openscd/src/translations/en.ts | 2 +- packages/plugins/src/editors/IED.ts | 10 ++++++++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/openscd/src/translations/de.ts b/packages/openscd/src/translations/de.ts index 8b2c18a01..701a76694 100644 --- a/packages/openscd/src/translations/de.ts +++ b/packages/openscd/src/translations/de.ts @@ -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', diff --git a/packages/openscd/src/translations/en.ts b/packages/openscd/src/translations/en.ts index 68da8beb3..2cef22737 100644 --- a/packages/openscd/src/translations/en.ts +++ b/packages/openscd/src/translations/en.ts @@ -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', diff --git a/packages/plugins/src/editors/IED.ts b/packages/plugins/src/editors/IED.ts index b96cd9ead..af59c90de 100644 --- a/packages/plugins/src/editors/IED.ts +++ b/packages/plugins/src/editors/IED.ts @@ -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 = []; @@ -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;