mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
fix(console): update the third-party app details page tag (#5294)
* fix(console): update the third-party app details page tag update the third-party app details page tag * fix(phrases): align the app tag capital case align the app tag capital case
This commit is contained in:
parent
cdaf3608c5
commit
9d15d88d28
18 changed files with 37 additions and 32 deletions
|
@ -109,7 +109,11 @@ function ApplicationDetailsContent({ data, oidcConfig, onApplicationUpdated }: P
|
|||
<DetailsPageHeader
|
||||
icon={<ApplicationIcon type={data.type} />}
|
||||
title={data.name}
|
||||
primaryTag={t(`${applicationTypeI18nKey[data.type]}.title`)}
|
||||
primaryTag={
|
||||
data.isThirdParty
|
||||
? t(`${applicationTypeI18nKey.thirdParty}.title`)
|
||||
: t(`${applicationTypeI18nKey[data.type]}.title`)
|
||||
}
|
||||
identifier={{ name: 'App ID', value: data.id }}
|
||||
additionalActionButton={conditional(
|
||||
!data.isThirdParty && {
|
||||
|
|
|
@ -150,7 +150,7 @@ function Applications({ tab }: Props) {
|
|||
title={name}
|
||||
subtitle={
|
||||
isThirdParty
|
||||
? t('applications.type.third_party.title')
|
||||
? t(`${applicationTypeI18nKey.thirdParty}.title`)
|
||||
: t(`${applicationTypeI18nKey[type]}.title`)
|
||||
}
|
||||
icon={<ApplicationIcon className={styles.icon} type={type} />}
|
||||
|
|
|
@ -10,6 +10,7 @@ export const applicationTypeI18nKey = Object.freeze({
|
|||
[ApplicationType.Traditional]: 'applications.type.traditional',
|
||||
[ApplicationType.MachineToMachine]: 'applications.type.machine_to_machine',
|
||||
[ApplicationType.Protected]: 'applications.type.protected',
|
||||
thirdParty: 'applications.type.third_party',
|
||||
} as const);
|
||||
|
||||
/**
|
||||
|
|
|
@ -16,7 +16,7 @@ const applications = {
|
|||
/** UNTRANSLATED */
|
||||
my_applications: 'My apps',
|
||||
/** UNTRANSLATED */
|
||||
third_party_applications: 'Third party apps',
|
||||
third_party_applications: 'Third-party apps',
|
||||
},
|
||||
app_id: 'App ID',
|
||||
type: {
|
||||
|
@ -51,7 +51,7 @@ const applications = {
|
|||
},
|
||||
third_party: {
|
||||
/** UNTRANSLATED */
|
||||
title: 'Third-party app',
|
||||
title: 'Third-party App',
|
||||
/** UNTRANSLATED */
|
||||
subtitle: 'An app that is used as a third-party IdP connector',
|
||||
/** UNTRANSLATED */
|
||||
|
|
|
@ -14,7 +14,7 @@ const applications = {
|
|||
application_created: 'Application created successfully.',
|
||||
tab: {
|
||||
my_applications: 'My apps',
|
||||
third_party_applications: 'Third party apps',
|
||||
third_party_applications: 'Third-party apps',
|
||||
},
|
||||
app_id: 'App ID',
|
||||
type: {
|
||||
|
@ -44,7 +44,7 @@ const applications = {
|
|||
description: 'N/A', // Not in use
|
||||
},
|
||||
third_party: {
|
||||
title: 'Third-party app',
|
||||
title: 'Third-party App',
|
||||
subtitle: 'An app that is used as a third-party IdP connector',
|
||||
description: 'E.g., OIDC, SAML',
|
||||
},
|
||||
|
|
|
@ -16,7 +16,7 @@ const applications = {
|
|||
/** UNTRANSLATED */
|
||||
my_applications: 'My apps',
|
||||
/** UNTRANSLATED */
|
||||
third_party_applications: 'Third party apps',
|
||||
third_party_applications: 'Third-party apps',
|
||||
},
|
||||
app_id: 'App ID',
|
||||
type: {
|
||||
|
@ -51,7 +51,7 @@ const applications = {
|
|||
},
|
||||
third_party: {
|
||||
/** UNTRANSLATED */
|
||||
title: 'Third-party app',
|
||||
title: 'Third-party App',
|
||||
/** UNTRANSLATED */
|
||||
subtitle: 'An app that is used as a third-party IdP connector',
|
||||
/** UNTRANSLATED */
|
||||
|
|
|
@ -16,7 +16,7 @@ const applications = {
|
|||
/** UNTRANSLATED */
|
||||
my_applications: 'My apps',
|
||||
/** UNTRANSLATED */
|
||||
third_party_applications: 'Third party apps',
|
||||
third_party_applications: 'Third-party apps',
|
||||
},
|
||||
app_id: 'App ID',
|
||||
type: {
|
||||
|
@ -52,7 +52,7 @@ const applications = {
|
|||
},
|
||||
third_party: {
|
||||
/** UNTRANSLATED */
|
||||
title: 'Third-party app',
|
||||
title: 'Third-party App',
|
||||
/** UNTRANSLATED */
|
||||
subtitle: 'An app that is used as a third-party IdP connector',
|
||||
/** UNTRANSLATED */
|
||||
|
|
|
@ -16,7 +16,7 @@ const applications = {
|
|||
/** UNTRANSLATED */
|
||||
my_applications: 'My apps',
|
||||
/** UNTRANSLATED */
|
||||
third_party_applications: 'Third party apps',
|
||||
third_party_applications: 'Third-party apps',
|
||||
},
|
||||
app_id: 'App ID',
|
||||
type: {
|
||||
|
@ -51,7 +51,7 @@ const applications = {
|
|||
},
|
||||
third_party: {
|
||||
/** UNTRANSLATED */
|
||||
title: 'Third-party app',
|
||||
title: 'Third-party App',
|
||||
/** UNTRANSLATED */
|
||||
subtitle: 'An app that is used as a third-party IdP connector',
|
||||
/** UNTRANSLATED */
|
||||
|
|
|
@ -16,7 +16,7 @@ const applications = {
|
|||
/** UNTRANSLATED */
|
||||
my_applications: 'My apps',
|
||||
/** UNTRANSLATED */
|
||||
third_party_applications: 'Third party apps',
|
||||
third_party_applications: 'Third-party apps',
|
||||
},
|
||||
app_id: 'App ID',
|
||||
type: {
|
||||
|
@ -50,7 +50,7 @@ const applications = {
|
|||
},
|
||||
third_party: {
|
||||
/** UNTRANSLATED */
|
||||
title: 'Third-party app',
|
||||
title: 'Third-party App',
|
||||
/** UNTRANSLATED */
|
||||
subtitle: 'An app that is used as a third-party IdP connector',
|
||||
/** UNTRANSLATED */
|
||||
|
|
|
@ -16,7 +16,7 @@ const applications = {
|
|||
/** UNTRANSLATED */
|
||||
my_applications: 'My apps',
|
||||
/** UNTRANSLATED */
|
||||
third_party_applications: 'Third party apps',
|
||||
third_party_applications: 'Third-party apps',
|
||||
},
|
||||
app_id: 'App ID',
|
||||
type: {
|
||||
|
@ -50,7 +50,7 @@ const applications = {
|
|||
},
|
||||
third_party: {
|
||||
/** UNTRANSLATED */
|
||||
title: 'Third-party app',
|
||||
title: 'Third-party App',
|
||||
/** UNTRANSLATED */
|
||||
subtitle: 'An app that is used as a third-party IdP connector',
|
||||
/** UNTRANSLATED */
|
||||
|
|
|
@ -16,7 +16,7 @@ const applications = {
|
|||
/** UNTRANSLATED */
|
||||
my_applications: 'My apps',
|
||||
/** UNTRANSLATED */
|
||||
third_party_applications: 'Third party apps',
|
||||
third_party_applications: 'Third-party apps',
|
||||
},
|
||||
app_id: 'App ID',
|
||||
type: {
|
||||
|
@ -51,7 +51,7 @@ const applications = {
|
|||
},
|
||||
third_party: {
|
||||
/** UNTRANSLATED */
|
||||
title: 'Third-party app',
|
||||
title: 'Third-party App',
|
||||
/** UNTRANSLATED */
|
||||
subtitle: 'An app that is used as a third-party IdP connector',
|
||||
/** UNTRANSLATED */
|
||||
|
|
|
@ -16,7 +16,7 @@ const applications = {
|
|||
/** UNTRANSLATED */
|
||||
my_applications: 'My apps',
|
||||
/** UNTRANSLATED */
|
||||
third_party_applications: 'Third party apps',
|
||||
third_party_applications: 'Third-party apps',
|
||||
},
|
||||
app_id: 'App ID',
|
||||
type: {
|
||||
|
@ -51,7 +51,7 @@ const applications = {
|
|||
},
|
||||
third_party: {
|
||||
/** UNTRANSLATED */
|
||||
title: 'Third-party app',
|
||||
title: 'Third-party App',
|
||||
/** UNTRANSLATED */
|
||||
subtitle: 'An app that is used as a third-party IdP connector',
|
||||
/** UNTRANSLATED */
|
||||
|
|
|
@ -16,7 +16,7 @@ const applications = {
|
|||
/** UNTRANSLATED */
|
||||
my_applications: 'My apps',
|
||||
/** UNTRANSLATED */
|
||||
third_party_applications: 'Third party apps',
|
||||
third_party_applications: 'Third-party apps',
|
||||
},
|
||||
app_id: 'App ID',
|
||||
type: {
|
||||
|
@ -50,7 +50,7 @@ const applications = {
|
|||
},
|
||||
third_party: {
|
||||
/** UNTRANSLATED */
|
||||
title: 'Third-party app',
|
||||
title: 'Third-party App',
|
||||
/** UNTRANSLATED */
|
||||
subtitle: 'An app that is used as a third-party IdP connector',
|
||||
/** UNTRANSLATED */
|
||||
|
|
|
@ -16,7 +16,7 @@ const applications = {
|
|||
/** UNTRANSLATED */
|
||||
my_applications: 'My apps',
|
||||
/** UNTRANSLATED */
|
||||
third_party_applications: 'Third party apps',
|
||||
third_party_applications: 'Third-party apps',
|
||||
},
|
||||
app_id: 'App ID',
|
||||
type: {
|
||||
|
@ -50,7 +50,7 @@ const applications = {
|
|||
},
|
||||
third_party: {
|
||||
/** UNTRANSLATED */
|
||||
title: 'Third-party app',
|
||||
title: 'Third-party App',
|
||||
/** UNTRANSLATED */
|
||||
subtitle: 'An app that is used as a third-party IdP connector',
|
||||
/** UNTRANSLATED */
|
||||
|
|
|
@ -16,7 +16,7 @@ const applications = {
|
|||
/** UNTRANSLATED */
|
||||
my_applications: 'My apps',
|
||||
/** UNTRANSLATED */
|
||||
third_party_applications: 'Third party apps',
|
||||
third_party_applications: 'Third-party apps',
|
||||
},
|
||||
app_id: 'App ID',
|
||||
type: {
|
||||
|
@ -51,7 +51,7 @@ const applications = {
|
|||
},
|
||||
third_party: {
|
||||
/** UNTRANSLATED */
|
||||
title: 'Third-party app',
|
||||
title: 'Third-party App',
|
||||
/** UNTRANSLATED */
|
||||
subtitle: 'An app that is used as a third-party IdP connector',
|
||||
/** UNTRANSLATED */
|
||||
|
|
|
@ -15,7 +15,7 @@ const applications = {
|
|||
/** UNTRANSLATED */
|
||||
my_applications: 'My apps',
|
||||
/** UNTRANSLATED */
|
||||
third_party_applications: 'Third party apps',
|
||||
third_party_applications: 'Third-party apps',
|
||||
},
|
||||
app_id: 'App ID',
|
||||
type: {
|
||||
|
@ -49,7 +49,7 @@ const applications = {
|
|||
},
|
||||
third_party: {
|
||||
/** UNTRANSLATED */
|
||||
title: 'Third-party app',
|
||||
title: 'Third-party App',
|
||||
/** UNTRANSLATED */
|
||||
subtitle: 'An app that is used as a third-party IdP connector',
|
||||
/** UNTRANSLATED */
|
||||
|
|
|
@ -15,7 +15,7 @@ const applications = {
|
|||
/** UNTRANSLATED */
|
||||
my_applications: 'My apps',
|
||||
/** UNTRANSLATED */
|
||||
third_party_applications: 'Third party apps',
|
||||
third_party_applications: 'Third-party apps',
|
||||
},
|
||||
app_id: 'App ID',
|
||||
type: {
|
||||
|
@ -49,7 +49,7 @@ const applications = {
|
|||
},
|
||||
third_party: {
|
||||
/** UNTRANSLATED */
|
||||
title: 'Third-party app',
|
||||
title: 'Third-party App',
|
||||
/** UNTRANSLATED */
|
||||
subtitle: 'An app that is used as a third-party IdP connector',
|
||||
/** UNTRANSLATED */
|
||||
|
|
|
@ -15,7 +15,7 @@ const applications = {
|
|||
/** UNTRANSLATED */
|
||||
my_applications: 'My apps',
|
||||
/** UNTRANSLATED */
|
||||
third_party_applications: 'Third party apps',
|
||||
third_party_applications: 'Third-party apps',
|
||||
},
|
||||
app_id: 'App ID',
|
||||
type: {
|
||||
|
@ -49,7 +49,7 @@ const applications = {
|
|||
},
|
||||
third_party: {
|
||||
/** UNTRANSLATED */
|
||||
title: 'Third-party app',
|
||||
title: 'Third-party App',
|
||||
/** UNTRANSLATED */
|
||||
subtitle: 'An app that is used as a third-party IdP connector',
|
||||
/** UNTRANSLATED */
|
||||
|
|
Loading…
Reference in a new issue