diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1ad4a681c..ed1ef2366 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,7 @@
- Enable credential reset
- Serview Overview
- Added Sub menu for active services in service overview
+ - Added Deactivate functionality
- Added image to service overview cards
- Data Space
- Last section background color issue
diff --git a/package.json b/package.json
index dfaaac7c3..279c5e334 100644
--- a/package.json
+++ b/package.json
@@ -26,7 +26,7 @@
]
},
"dependencies": {
- "@catena-x/portal-shared-components": "^2.0.27",
+ "@catena-x/portal-shared-components": "^2.0.29",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@hookform/error-message": "^2.0.1",
diff --git a/src/assets/locales/de/servicerelease.json b/src/assets/locales/de/servicerelease.json
index 5b217db87..0fef0045c 100644
--- a/src/assets/locales/de/servicerelease.json
+++ b/src/assets/locales/de/servicerelease.json
@@ -16,6 +16,13 @@
"loadmore": "Mehr laden",
"documentDeleteSuccess": "Document deleted successfully",
"documentDeleteError": "Something went wrong.",
+ "global": {
+ "actions": {
+ "confirm": "Bestätigen",
+ "cancel": "Stornieren",
+ "save": "Speichern"
+ }
+ },
"stepper": {
"marketCard": "Offer Card",
"servicePage": "Offer Page Details",
@@ -120,6 +127,14 @@
"submenuNotAvailable": "Sub-Menu is not available for not active apps.",
"sortOptions": {
"deactivate": "Deactivate"
+ },
+ "serviceDeactivate": {
+ "headerTitle": "Dienst deaktivieren",
+ "description": "Durch die Deaktivierung des Dienstes wird das Serviceangebot auf dem Catena-X-Marktplatz deaktiviert. Alle derzeit aktiven Abonnements bleiben aktiv und die Kunden sind von der Deaktivierung nicht betroffen. Neue Abonnements sind nicht möglich.",
+ "checkboxLabel": "Hiermit bestätige ich, dass ich die Geschäftsbedingungen für Business-Services gelesen habe und dass ich die Business-Services meines Unternehmens mit sofortiger Wirkung vom Marktplatz deaktiviere. Ich verstehe, dass es nicht möglich ist, die Deaktivierung selbst rückgängig zu machen.",
+ "checkboxErrorMsg": "Bitte bestätigen Sie, dass Sie die oben genannten Auswirkungen der Deaktivierung gelesen haben, bevor Sie fortfahren",
+ "successMsg": "Deaktivierung erfolgreich abgeschlossen",
+ "errorMsg": "Fehler! Etwas ist schief gelaufen"
}
},
"servicedetails": {
diff --git a/src/assets/locales/en/servicerelease.json b/src/assets/locales/en/servicerelease.json
index 901035dda..537528662 100644
--- a/src/assets/locales/en/servicerelease.json
+++ b/src/assets/locales/en/servicerelease.json
@@ -16,6 +16,13 @@
"loadmore": "Load More",
"documentDeleteSuccess": "Document deleted successfully",
"documentDeleteError": "Something went wrong.",
+ "global": {
+ "actions": {
+ "confirm": "Confirm",
+ "cancel": "Cancel",
+ "save": "Save"
+ }
+ },
"stepper": {
"marketCard": "Offer Card",
"servicePage": "Offer Page Details",
@@ -120,6 +127,14 @@
"submenuNotAvailable": "Sub-Menu is not available for not active apps.",
"sortOptions": {
"deactivate": "Deactivate"
+ },
+ "serviceDeactivate": {
+ "headerTitle": "Deactivate Service",
+ "description": "Deactivation of service will deactivate the service offer inside the Catena-X marketplace. Any current active subscription will stay active and customers wont be effected by the deactivation. New subscriptions are not possible.",
+ "checkboxLabel": "Hereby I confirm that I have read the business service terms and conditions and that I am deactivating my company business services from the marketplace with immediate effect. I understand that it is not possible to self-reverse the deactivation.",
+ "checkboxErrorMsg": "Please confirm that you have read the deactivation impact above before proceeding",
+ "successMsg": "Deactivation successfully completed",
+ "errorMsg": "Error! Something went wrong"
}
},
"servicedetails": {
diff --git a/src/components/pages/AppOverview/AddRolesOverlay.tsx b/src/components/pages/AppOverview/AddRolesOverlay.tsx
index d38cbba21..74e268f59 100644
--- a/src/components/pages/AppOverview/AddRolesOverlay.tsx
+++ b/src/components/pages/AppOverview/AddRolesOverlay.tsx
@@ -157,6 +157,13 @@ const AddRolesOverlay = ({
})
}
+ const handleClose = () => {
+ handleOverlayClose()
+ setRolesPreviews([])
+ setRolesDescription([])
+ setUploadCSVError(false)
+ }
+
return (