delete confirmation modals - styles alignment 45/20745/1
authormiriame <miriam.eini@amdocs.com>
Thu, 26 Oct 2017 09:01:01 +0000 (12:01 +0300)
committermiriame <miriam.eini@amdocs.com>
Thu, 26 Oct 2017 09:14:21 +0000 (12:14 +0300)
Change-Id: I4e89b36cbe58d3266598bc9e44d80b4bdf1b4f7d
Issue-ID: SDC-541
Signed-off-by: miriame <miriam.eini@amdocs.com>
openecomp-ui/src/sdc-app/onboarding/licenseModel/entitlementPools/EntitlementPoolsLimits.js
openecomp-ui/src/sdc-app/onboarding/licenseModel/entitlementPools/EntitlementPoolsListEditor.js
openecomp-ui/src/sdc-app/onboarding/licenseModel/featureGroups/FeatureGroupListEditor.js
openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementListEditor.js
openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseKeyGroups/LicenseKeyGroupsLimits.js
openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseKeyGroups/LicenseKeyGroupsListEditor.js
openecomp-ui/src/sdc-app/onboarding/softwareProduct/components/processes/SoftwareProductComponentProcessesList.js
openecomp-ui/src/sdc-app/onboarding/softwareProduct/processes/SoftwareProductProcesses.js

index ae53a75..1eb6eeb 100644 (file)
@@ -44,7 +44,7 @@ const mapActionsToProps = (dispatch) => {
                        data:{
                                msg: i18n(`Are you sure you want to delete ${limit.name}?`),
                                confirmationButtonText: i18n('Delete'),
-                               title: i18n('Warning'),
+                               title: i18n('Delete'),
                                onConfirmed: ()=> EntitlementPoolsActionHelper.deleteLimit(dispatch, {limit, entitlementPool: parent, licenseModelId, version}).then(() => 
                                        selectedLimit === limit.id && onCloseLimitEditor()
                                )
index 62c6663..fa21109 100644 (file)
@@ -43,8 +43,9 @@ const mapActionsToProps = (dispatch, {licenseModelId, version}) => {
                onDeleteEntitlementPool: entitlementPool => dispatch({
                        type: globalMoadlActions.GLOBAL_MODAL_WARNING,
                        data:{
-                               msg: generateConfirmationMsg(entitlementPool),                          
-                               title: i18n('Warning'),                         
+                               msg: generateConfirmationMsg(entitlementPool),
+                               confirmationButtonText: i18n('Delete'),
+                               title: i18n('Delete'),
                                onConfirmed: ()=>EntitlementPoolsActionHelper.deleteEntitlementPool(dispatch, {
                                        licenseModelId,
                                        entitlementPoolId: entitlementPool.id,
index 83473a3..fc89238 100644 (file)
@@ -44,7 +44,8 @@ const mapActionsToProps = (dispatch, {licenseModelId}) => {
                        type: globalMoadlActions.GLOBAL_MODAL_WARNING,
                        data:{
                                msg: generateConfirmationMsg(featureGroup),
-                               title: i18n('Warning'),
+                               confirmationButtonText: i18n('Delete'),
+                               title: i18n('Delete'),
                                onConfirmed: ()=>FeatureGroupsActionHelper.deleteFeatureGroup(dispatch, {featureGroupId: featureGroup.id, licenseModelId, version})
                        }
                }),
index 72a99e2..92c2550 100644 (file)
@@ -45,7 +45,8 @@ const mapActionsToProps = (dispatch, {licenseModelId}) => {
                        type: globalMoadlActions.GLOBAL_MODAL_WARNING,
                        data:{
                                msg: i18n(`Are you sure you want to delete "${licenseAgreement.name}"?`),
-                               title: i18n('Warning'),
+                               confirmationButtonText: i18n('Delete'),
+                               title: i18n('Delete'),
                                onConfirmed: ()=>LicenseAgreementActionHelper.deleteLicenseAgreement(dispatch, {licenseModelId, licenseAgreementId: licenseAgreement.id, version})
                        }
                })
index 7745a12..0e20a6a 100644 (file)
@@ -45,7 +45,7 @@ const mapActionsToProps = (dispatch) => {
                        data:{
                                msg: i18n(`Are you sure you want to delete ${limit.name}?`),
                                confirmationButtonText: i18n('Delete'),
-                               title: i18n('Warning'),
+                               title: i18n('Delete'),
                                onConfirmed: ()=> LicenseKeyGroupsActionHelper.deleteLimit(dispatch, {limit, licenseKeyGroup: parent, licenseModelId, version}).then(() => 
                                        selectedLimit === limit.id && onCloseLimitEditor()
                                )
index a8cf1eb..c1d9373 100644 (file)
@@ -42,8 +42,9 @@ const mapActionsToProps = (dispatch, {licenseModelId, version}) => {
                onDeleteLicenseKeyGroupClick: licenseKeyGroup => dispatch({
                        type: globalMoadlActions.GLOBAL_MODAL_WARNING,
                        data:{
-                               msg: generateConfirmationMsg(licenseKeyGroup),                          
-                               title: i18n('Warning'),                         
+                               msg: generateConfirmationMsg(licenseKeyGroup),
+                               confirmationButtonText: i18n('Delete'),
+                               title: i18n('Delete'),
                                onConfirmed: ()=>LicenseKeyGroupsActionHelper.deleteLicenseKeyGroup(dispatch, {licenseModelId, licenseKeyGroupId:licenseKeyGroup.id, version})
                        }
                })
index 8262011..8c359db 100644 (file)
@@ -48,6 +48,8 @@ const mapActionsToProps = (dispatch, {componentId, softwareProductId}) => {
                        type: modalActionTypes.GLOBAL_MODAL_WARNING,
                        data:{
                                msg: i18n(`Are you sure you want to delete "${process.name}"?`),
+                               confirmationButtonText: i18n('Delete'),
+                               title: i18n('Delete'),
                                onConfirmed: ()=> SoftwareProductComponentProcessesActionHelper.deleteProcess(dispatch,
                                        {process, softwareProductId, version, componentId})
                        }
index afd6331..c704529 100644 (file)
@@ -43,6 +43,8 @@ const mapActionsToProps = (dispatch, {softwareProductId}) => {
                        type: modalActionTypes.GLOBAL_MODAL_WARNING,
                        data:{
                                msg: i18n(`Are you sure you want to delete "${process.name}"?`),
+                               confirmationButtonText: i18n('Delete'),
+                               title: i18n('Delete'),
                                onConfirmed: ()=> SoftwareProductProcessesActionHelper.deleteProcess(dispatch,
                                        {process, softwareProductId, version})
                        }