-
Notifications
You must be signed in to change notification settings - Fork 920
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
Signed-off-by: Yibo Wang <[email protected]>
- Loading branch information
Showing
3 changed files
with
145 additions
and
3 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.editCredential.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.editCredential.deleteCredentialConfirmMsg', | ||
{ | ||
defaultMessage: 'To confirm deletion, click delete button.', | ||
} | ||
); | ||
|
||
export const deleteCredentialWarnMsg = i18n.translate( | ||
'credentialManagement.editCredential.deleteCredentialWarnMsg', | ||
{ | ||
defaultMessage: 'Note: this action is irrevocable!', | ||
} | ||
); | ||
|
||
export const confirmTitle = i18n.translate( | ||
'credentialManagement.editCredential.deleteCredentialConfirmTitle', | ||
{ | ||
defaultMessage: 'Delete credential permanently?', | ||
} | ||
); | ||
|
||
export const deleteCredentialButtonDescription = i18n.translate( | ||
'credentialManagement.editCredential.deleteCredentialButtonDescription', | ||
{ | ||
defaultMessage: 'Remove this credential', | ||
} | ||
); | ||
|
||
export const cancelButtonText = i18n.translate( | ||
'credentialManagement.editCredential.cancelButtonText', | ||
{ | ||
defaultMessage: 'Cancel', | ||
} | ||
); | ||
|
||
export const confirmButtonText = i18n.translate( | ||
'credentialManagement.editCredential.confirmButtonText', | ||
{ | ||
defaultMessage: 'Delete', | ||
} | ||
); |