forked from baron/baron-sso
로케일 누락 키 추가 및 lint 수정
This commit is contained in:
@@ -2427,13 +2427,13 @@ function ClientGeneralPage() {
|
||||
{tenantAccessRestricted ? (
|
||||
<div className="grid gap-4 lg:grid-cols-[0.8fr_1.2fr]">
|
||||
<div className="space-y-3">
|
||||
<Label className="text-sm font-semibold">
|
||||
{t(
|
||||
"ui.dev.clients.general.tenant_access.picker_label",
|
||||
"Add allowed tenant",
|
||||
)}{" "}
|
||||
<span className="text-destructive">*</span>
|
||||
</Label>
|
||||
<Label className="text-sm font-semibold">
|
||||
{t(
|
||||
"ui.dev.clients.general.tenant_access.picker_label",
|
||||
"Add allowed tenant",
|
||||
)}{" "}
|
||||
<span className="text-destructive">*</span>
|
||||
</Label>
|
||||
<TenantAccessPicker
|
||||
disabled={isGeneralSettingsReadOnly}
|
||||
selectedCount={allowedTenantIds.length}
|
||||
|
||||
@@ -16,10 +16,7 @@ type TenantAccessPickerProps = {
|
||||
};
|
||||
|
||||
function resolveOrgFrontBaseUrl() {
|
||||
return (
|
||||
import.meta.env.ORGFRONT_URL ||
|
||||
"http://localhost:5175"
|
||||
);
|
||||
return import.meta.env.ORGFRONT_URL || "http://localhost:5175";
|
||||
}
|
||||
|
||||
export function TenantAccessPicker({
|
||||
|
||||
@@ -43,9 +43,7 @@ describe("developer access pages", () => {
|
||||
|
||||
window.localStorage.setItem("locale", "en");
|
||||
|
||||
expect(getDeveloperAccessPageLabel("client_create")).toBe(
|
||||
"Add linked app",
|
||||
);
|
||||
expect(getDeveloperAccessPageLabel("client_create")).toBe("Add linked app");
|
||||
expect(developerAccessPagesToLabel(["overview", "audit"])).toBe(
|
||||
"Overview, Audit Logs",
|
||||
);
|
||||
|
||||
@@ -96,10 +96,7 @@ function getRecentClientFieldLabel(key: string) {
|
||||
"클라이언트 시크릿",
|
||||
);
|
||||
case "id_token_claims":
|
||||
return t(
|
||||
"ui.dev.clients.general.id_token_claims.title",
|
||||
"Custom Claims",
|
||||
);
|
||||
return t("ui.dev.clients.general.id_token_claims.title", "Custom Claims");
|
||||
default:
|
||||
return key;
|
||||
}
|
||||
@@ -159,11 +156,7 @@ function formatIdTokenClaimChangeSummary(
|
||||
const afterValueType =
|
||||
typeof afterValue.valueType === "string" ? afterValue.valueType : null;
|
||||
|
||||
if (
|
||||
beforeValueType &&
|
||||
afterValueType &&
|
||||
beforeValueType !== afterValueType
|
||||
) {
|
||||
if (beforeValueType && afterValueType && beforeValueType !== afterValueType) {
|
||||
return `~ ${beforeDisplayName}: ${beforeValueType} → ${afterValueType}`;
|
||||
}
|
||||
|
||||
@@ -317,7 +310,9 @@ export function buildRecentClientChangeDetails(
|
||||
}
|
||||
|
||||
if (action !== "CREATE_CLIENT" && action !== "DELETE_CLIENT") {
|
||||
if (auditValueSignature(beforeValue) === auditValueSignature(afterValue)) {
|
||||
if (
|
||||
auditValueSignature(beforeValue) === auditValueSignature(afterValue)
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user