From 7266aee44572fc44314f91d55f5b81d827ff898a Mon Sep 17 00:00:00 2001 From: Charles Zhao Date: Tue, 30 Jan 2024 12:33:52 +0800 Subject: [PATCH] refactor(console,phrases): show notification when modify origin url in protected app details (#5334) --- .../ProtectedAppSettings/index.tsx | 6 ++++++ .../locales/de/translation/admin-console/protected-app.ts | 3 +++ .../locales/en/translation/admin-console/protected-app.ts | 2 ++ .../locales/es/translation/admin-console/protected-app.ts | 3 +++ .../locales/fr/translation/admin-console/protected-app.ts | 3 +++ .../locales/it/translation/admin-console/protected-app.ts | 3 +++ .../locales/ja/translation/admin-console/protected-app.ts | 3 +++ .../locales/ko/translation/admin-console/protected-app.ts | 3 +++ .../pl-pl/translation/admin-console/protected-app.ts | 3 +++ .../pt-br/translation/admin-console/protected-app.ts | 3 +++ .../pt-pt/translation/admin-console/protected-app.ts | 3 +++ .../locales/ru/translation/admin-console/protected-app.ts | 3 +++ .../tr-tr/translation/admin-console/protected-app.ts | 3 +++ .../zh-cn/translation/admin-console/protected-app.ts | 3 +++ .../zh-hk/translation/admin-console/protected-app.ts | 3 +++ .../zh-tw/translation/admin-console/protected-app.ts | 3 +++ 16 files changed, 50 insertions(+) diff --git a/packages/console/src/pages/ApplicationDetails/ApplicationDetailsContent/ProtectedAppSettings/index.tsx b/packages/console/src/pages/ApplicationDetails/ApplicationDetailsContent/ProtectedAppSettings/index.tsx index 3637ef6ff..bc3ba743e 100644 --- a/packages/console/src/pages/ApplicationDetails/ApplicationDetailsContent/ProtectedAppSettings/index.tsx +++ b/packages/console/src/pages/ApplicationDetails/ApplicationDetailsContent/ProtectedAppSettings/index.tsx @@ -3,6 +3,7 @@ import { type Application, type CustomDomain as CustomDomainType, } from '@logto/schemas'; +import { cond } from '@silverhand/essentials'; import { type ChangeEvent } from 'react'; import { Controller, useFieldArray, useFormContext } from 'react-hook-form'; import { Trans, useTranslation } from 'react-i18next'; @@ -45,6 +46,7 @@ function ProtectedAppSettings({ data }: Props) { const { control, register, + getFieldState, formState: { errors }, } = useFormContext(); @@ -146,6 +148,10 @@ function ProtectedAppSettings({ data }: Props) { {t('application_details.origin_url_tip')}} >