diff --git a/public/locales/en.json b/public/locales/en.json index 5679bd44..59026771 100644 --- a/public/locales/en.json +++ b/public/locales/en.json @@ -10,6 +10,9 @@ "username": "Username" }, "form-dialog": { + "confirmation_body": "{{context}}", + "confirmation_heading": "Are you sure you want to do this action?", + "confirmation_title": "Confirmation", "confirmation_body_add-source": "{{context}}", "confirmation_body_add-source_edit": "{{context}}", "confirmation_heading_add-source": "Are you sure you want to cancel adding this source?", @@ -20,6 +23,10 @@ "confirmation_body_add-source_exit_edit": "The wizard is in a pending state and will continue updating this source.", "confirmation_heading_add-source_exit": "Are you sure you want to exit this wizard?", "confirmation_title_add-source_exit": "Exit Wizard", + "confirmation_heading_delete-credential": " Are you sure you want to delete the credential <0>{{name}}0>?", + "confirmation_heading_delete-credential_other": " Are you sure you want to delete the following credentials?", + "confirmation_title_delete-credential": "Delete Credential", + "confirmation_title_delete-credential_other": "Delete Credentials", "confirmation_title_delete-source": "Delete Source", "confirmation_heading_delete-source": "Are you sure you want to delete the source <0>{{name}}0>?", "empty-state_description_add-source": "{{context}}", @@ -37,6 +44,7 @@ "label_add-credential": "Add a credential", "label_cancel": "Cancel", "label_close": "Close", + "label_confirm": "Confirm", "label_delete": "Delete", "label_no": "No", "label_option_disableSsl": "Disable SSL", @@ -75,6 +83,7 @@ "refreshed_load": "Refreshed {{refresh}}" }, "table": { + "header_auth-type": "Authorization type", "header_credentials": "Credentials", "header_description": "Description", "header_failed": "Failed systems", @@ -99,10 +108,17 @@ "label_action_scan_paused": "Resume scan", "label_action_scan_pending": "Cancel scan", "label_add": "Add", + "label_auth_cell": "Username and password", + "label_auth_cell_sshKey": "SSH Key", + "label_auth_tooltip": "Authorization type", "label_delete": "Delete", "label_edit": "Edit", "label_merge-reports": "Merge reports", + "label_network": "Network", + "label_satellite": "Satellite", "label_scan": "Scan", + "label_source": "Source", + "label_source_other": "Sources", "label_status": "{{context}}", "label_status_scans": "Scan created", "label_status_completed": "Last completed", @@ -147,6 +163,8 @@ "label_status_tooltip_success_sources_other": "{{count}} Successful Authentications", "label_status_tooltip_unreachable": "{{count}} Unreachable System", "label_status_tooltip_unreachable_other": "{{count}} Unreachable Systems", + "label_vcenter": "VCenter", + "label_view": "View", "tooltip_merge-reports": "Merge selected scan results into a single report" }, "toast-notifications": { @@ -155,6 +173,10 @@ "description_add-source_hidden_edit": "Source {{name}} was updated", "description_add-source_hidden_error": "{{message}}", "description_add-source_hidden_error_edit": "{{message}}", + "description_deleted-credential": "Deleted credential {{name}}", + "description_deleted-credential_other": "Deleted credentials {{name}} and more", + "description_deleted-credential_error": "Error removing credential {{name}}. {{message}}", + "description_deleted-credential_error_other": "Error removing credentials {{name}} and more. {{message}}", "description_deleted-source": "Deleted source {{name}}.", "description_error": "Application error", "description_scan-report_canceled": "Scan <0>{{name}}0> stopped", @@ -168,6 +190,8 @@ "title_add-source_hidden_edit": "Success updating source", "title_add-source_hidden_error": "Error creating source", "title_add-source_hidden_error_edit": "Error updating source", + "title_deleted-credential": "Success deleting credential", + "title_deleted-credential_other": "Success deleting credentials", "title_deleted-source": "Success deleting source", "title_error": "Error", "title_warning": "Warning" diff --git a/src/components/confirmationModal/__tests__/__snapshots__/confirmationModal.test.js.snap b/src/components/confirmationModal/__tests__/__snapshots__/confirmationModal.test.js.snap index 30f5b1ac..07fb1410 100644 --- a/src/components/confirmationModal/__tests__/__snapshots__/confirmationModal.test.js.snap +++ b/src/components/confirmationModal/__tests__/__snapshots__/confirmationModal.test.js.snap @@ -21,8 +21,40 @@ exports[`Confirmation Modal Component should allow custom content: custom 1`] = role="dialog" style="--pf-c-modal-box--m-align-top--spacer: 5%;" > -
- Dolor sit -
+ Dolor sit- Test body -
+ Test body{body}
+ body || updatedHeading ? ( +{nextProps.update.errorMessage}
- - ) - }); - - this.deleteNextCredential(); - } - } - } - - onDeleteCredentials = () => { - const { viewOptions } = this.props; - - if (viewOptions.selectedItems.length === 1) { - this.onDeleteCredential(viewOptions.selectedItems[0]); - return; - } - - const heading = Are you sure you want to delete the following credentials?; - - let credentialsList = ''; - viewOptions.selectedItems.forEach((item, index) => { - credentialsList += (index > 0 ? '\n' : '') + item.name; - }); - - const body = ( -