From 2c4adf877fdb9768af291f2a6f431d4b468d1eea Mon Sep 17 00:00:00 2001 From: Martin Maul Date: Wed, 17 Jul 2024 09:35:07 +0200 Subject: [PATCH 1/3] chore(notifications): 1069 adjust notification creation disabling tooltip for customer parts --- .../components/parts-table/parts-table.component.html | 2 +- .../shared/components/parts-table/parts-table.component.ts | 7 ++++++- frontend/src/assets/locales/de/common.json | 3 ++- frontend/src/assets/locales/en/common.json | 3 ++- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/modules/shared/components/parts-table/parts-table.component.html b/frontend/src/app/modules/shared/components/parts-table/parts-table.component.html index f8fae6afcb..0483046d65 100644 --- a/frontend/src/app/modules/shared/components/parts-table/parts-table.component.html +++ b/frontend/src/app/modules/shared/components/parts-table/parts-table.component.html @@ -61,7 +61,7 @@
part.owner === Owner.CUSTOMER); + } + handleKeyDownQualityNotificationClicked(event: KeyboardEvent){ if (event.key === 'Enter') { this.createQualityNotificationClicked(); diff --git a/frontend/src/assets/locales/de/common.json b/frontend/src/assets/locales/de/common.json index 3cbb8dc813..076d9a6bc4 100644 --- a/frontend/src/assets/locales/de/common.json +++ b/frontend/src/assets/locales/de/common.json @@ -13,7 +13,8 @@ "adminBpn": "BPN - EDC Konfiguration", "adminImport": "Datenbereitstellung", "adminPolicies" : "Richtlinienverwaltung", - "partMismatch": "Die ausgewählten Teile müssen vom selben Eigentümer sein, um ein Qualitätsthema zu erstellen (Eigen, Lieferant)", + "partMismatch" : "Alle ausgewählte Teile müssen vom selben Eigentümer sein, um ein Qualitätsthema zu erstellen (Lieferant/Eigene).", + "hasCustomerPart" : "Die Erstellung einer Qualitätsmitteilung für Kundenteile ist nicht möglich. Alle ausgewählten Teile müssen vom selben Eigentümer sein (Lieferant/Eigene).", "unauthorized": "Die Funktion ist aufgrund einer fehlenden Rolle deaktiviert. Bitten Sie Ihren Administrator, die erforderliche Rolle für die Funktion bereitzustellen.", "notificationInProcess" : "Aktionen für Qualitätsthemen sind während dem Verarbeitungsprozess nicht verfügbar.", "notAllowedForAsPlanned": "Diese Funktion ist für Produkte im Lebenszyklus \"AsPlanned\" nicht verfügbar.", diff --git a/frontend/src/assets/locales/en/common.json b/frontend/src/assets/locales/en/common.json index 969c2d46b3..ba31befb73 100644 --- a/frontend/src/assets/locales/en/common.json +++ b/frontend/src/assets/locales/en/common.json @@ -12,7 +12,8 @@ "adminBpn": "BPN - EDC configuration", "adminImport": "Data provisioning", "adminPolicies" : "Policy management", - "partMismatch": "Selected parts must have same owner to create quality topic (Own, Supplier)", + "partMismatch" : "Selected parts must have same owner to create quality topic (Supplier/Own)", + "hasCustomerPart" : "It is not possible to create a quality notification for customer parts. All selected parts must be from the same owner (Supplier/Own).", "unauthorized": "Functionality is disabled because of missing role. Ask your administrator to provide the required role for the functionality.", "notificationInProcess" : "Actions are unavailable on notifications in processing state", "notAllowedForAsPlanned": "This function is not available for Parts in the Lifecycle \"AsPlanned\".", From 1f9d3e57fd6cc925c0a5ea5a3910488a03a0754b Mon Sep 17 00:00:00 2001 From: Martin Maul Date: Wed, 17 Jul 2024 10:22:41 +0200 Subject: [PATCH 2/3] chore(notifications): 1069 adjust notification creation disabling tooltip for customer parts --- frontend/src/assets/locales/de/common.json | 2 +- frontend/src/assets/locales/en/common.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/assets/locales/de/common.json b/frontend/src/assets/locales/de/common.json index 076d9a6bc4..e003dffa24 100644 --- a/frontend/src/assets/locales/de/common.json +++ b/frontend/src/assets/locales/de/common.json @@ -13,7 +13,7 @@ "adminBpn": "BPN - EDC Konfiguration", "adminImport": "Datenbereitstellung", "adminPolicies" : "Richtlinienverwaltung", - "partMismatch" : "Alle ausgewählte Teile müssen vom selben Eigentümer sein, um ein Qualitätsthema zu erstellen (Lieferant/Eigene).", + "partMismatch" : "Alle ausgewählten Teile müssen vom selben Eigentümer sein, um ein Qualitätsthema zu erstellen (Lieferant/Eigene).", "hasCustomerPart" : "Die Erstellung einer Qualitätsmitteilung für Kundenteile ist nicht möglich. Alle ausgewählten Teile müssen vom selben Eigentümer sein (Lieferant/Eigene).", "unauthorized": "Die Funktion ist aufgrund einer fehlenden Rolle deaktiviert. Bitten Sie Ihren Administrator, die erforderliche Rolle für die Funktion bereitzustellen.", "notificationInProcess" : "Aktionen für Qualitätsthemen sind während dem Verarbeitungsprozess nicht verfügbar.", diff --git a/frontend/src/assets/locales/en/common.json b/frontend/src/assets/locales/en/common.json index ba31befb73..101f696388 100644 --- a/frontend/src/assets/locales/en/common.json +++ b/frontend/src/assets/locales/en/common.json @@ -12,7 +12,7 @@ "adminBpn": "BPN - EDC configuration", "adminImport": "Data provisioning", "adminPolicies" : "Policy management", - "partMismatch" : "Selected parts must have same owner to create quality topic (Supplier/Own)", + "partMismatch" : "All selected parts must have same owner to create quality topic (Supplier/Own).", "hasCustomerPart" : "It is not possible to create a quality notification for customer parts. All selected parts must be from the same owner (Supplier/Own).", "unauthorized": "Functionality is disabled because of missing role. Ask your administrator to provide the required role for the functionality.", "notificationInProcess" : "Actions are unavailable on notifications in processing state", From 92c147e076e463a6b9befead24191a654dbbd634 Mon Sep 17 00:00:00 2001 From: Martin Maul Date: Wed, 17 Jul 2024 10:24:09 +0200 Subject: [PATCH 3/3] chore(notifications): 1069 adjust notification creation disabling tooltip for customer parts --- frontend/src/assets/locales/en/common.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/assets/locales/en/common.json b/frontend/src/assets/locales/en/common.json index 101f696388..dc6f3b6cb0 100644 --- a/frontend/src/assets/locales/en/common.json +++ b/frontend/src/assets/locales/en/common.json @@ -12,7 +12,7 @@ "adminBpn": "BPN - EDC configuration", "adminImport": "Data provisioning", "adminPolicies" : "Policy management", - "partMismatch" : "All selected parts must have same owner to create quality topic (Supplier/Own).", + "partMismatch" : "All selected parts must be from the same owner to create a quality notification (Supplier/Own).", "hasCustomerPart" : "It is not possible to create a quality notification for customer parts. All selected parts must be from the same owner (Supplier/Own).", "unauthorized": "Functionality is disabled because of missing role. Ask your administrator to provide the required role for the functionality.", "notificationInProcess" : "Actions are unavailable on notifications in processing state",