forked from opensearch-project/OpenSearch-Dashboards
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add delete button for credential detailed page (opensearch-project#2067)
Signed-off-by: Yibo Wang <[email protected]> Signed-off-by: Kristen Tian <[email protected]>
- Loading branch information
1 parent
03fa1c5
commit 2faa379
Showing
3 changed files
with
139 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
src/plugins/credential_management/public/components/text_content/text_content.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { i18n } from '@osd/i18n'; | ||
|
||
export const deleteCredentialDescribeMsg = i18n.translate( | ||
'credentialManagement.textContent.deleteCredentialDescribeMsg', | ||
{ | ||
defaultMessage: | ||
'This will also delete their credential materials. All data sources using this credential will be invalid for access, and they must choose new credentials.', | ||
} | ||
); | ||
|
||
export const deleteCredentialConfirmMsg = i18n.translate( | ||
'credentialManagement.textContent.deleteCredentialConfirmMsg', | ||
{ | ||
defaultMessage: 'To confirm deletion, click delete button.', | ||
} | ||
); | ||
|
||
export const deleteCredentialWarnMsg = i18n.translate( | ||
'credentialManagement.textContent.deleteCredentialWarnMsg', | ||
{ | ||
defaultMessage: 'Note: this action is irrevocable!', | ||
} | ||
); | ||
|
||
export const deleteButtonOnConfirmText = i18n.translate( | ||
'credentialManagement.textContent.deleteButtonOnConfirmText', | ||
{ | ||
defaultMessage: 'Delete credential permanently?', | ||
} | ||
); | ||
|
||
export const deleteCredentialButtonDescription = i18n.translate( | ||
'credentialManagement.textContent.deleteCredentialButtonDescription', | ||
{ | ||
defaultMessage: 'Remove this credential', | ||
} | ||
); | ||
|
||
export const cancelButtonOnDeleteCancelText = i18n.translate( | ||
'credentialManagement.textContent.cancelButtonOnDeleteCancelText', | ||
{ | ||
defaultMessage: 'Cancel', | ||
} | ||
); | ||
|
||
export const confirmButtonOnDeleteComfirmText = i18n.translate( | ||
'credentialManagement.textContent.confirmButtonOnDeleteComfirmText', | ||
{ | ||
defaultMessage: 'Delete', | ||
} | ||
); |