Skip to content

Commit

Permalink
fix(console): change PAT and app secrets phrases
Browse files Browse the repository at this point in the history
  • Loading branch information
wangsijie committed Aug 22, 2024
1 parent 4be675a commit ae8994b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,10 @@ function EndpointsAndCredentials({
<FormField title="application_details.application_secret_other">
{secretsData.length === 0 && !secrets.error ? (
<>
<div className={styles.empty}>
{t('organizations.empty_placeholder', {
entity: t('application_details.application_secret').toLowerCase(),
})}
</div>
<div className={styles.empty}>{t('application_details.secrets.empty')}</div>
<Button
icon={<Plus />}
title="general.add"
title="application_details.secrets.create_new_secret"
onClick={() => {
setShowCreateSecretModal(true);
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,10 @@ function PersonalAccessTokens({ userId }: Props) {
>
{data?.length === 0 && !error ? (
<>
<div className={styles.empty}>
{t('organizations.empty_placeholder', {
entity: t('user_details.personal_access_tokens.title').toLowerCase(),
})}
</div>
<div className={styles.empty}>{t('user_details.personal_access_tokens.empty')}</div>
<Button
icon={<Plus />}
title="general.add"
title={t('user_details.personal_access_tokens.create')}
onClick={() => {
setShowCreateTokenModal(true);
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ const application_details = {
},
secrets: {
value: 'Value',
empty: 'The application does not have any secrets.',
created_at: 'Created at',
expires_at: 'Expires at',
never: 'Never',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ const user_details = {
title: 'Personal access token',
title_other: 'Personal access tokens',
title_short: 'token',
empty: 'The user does not have any personal access tokens.',
create: 'Create new token',
tip: 'Personal access tokens (PATs) provide a secure way for users to grant access tokens without using their credentials and interactive sign-in. This is useful for CI/CD, scripts, or applications that need to access resources programmatically. <a>Learn more</a>',
value: 'Value',
created_at: 'Created at',
Expand Down

0 comments on commit ae8994b

Please sign in to comment.