forked from baron/baron-sso
빌드 오류 및 리다이렉트 수정
This commit is contained in:
@@ -69,6 +69,7 @@ import {
|
|||||||
SelectTrigger,
|
SelectTrigger,
|
||||||
SelectValue,
|
SelectValue,
|
||||||
} from "../../../components/ui/select";
|
} from "../../../components/ui/select";
|
||||||
|
import { Switch } from "../../../components/ui/switch";
|
||||||
import {
|
import {
|
||||||
Table,
|
Table,
|
||||||
TableBody,
|
TableBody,
|
||||||
@@ -88,6 +89,7 @@ import {
|
|||||||
type TenantImportDetail,
|
type TenantImportDetail,
|
||||||
type TenantImportResult,
|
type TenantImportResult,
|
||||||
type TenantSummary,
|
type TenantSummary,
|
||||||
|
type UserProfileResponse,
|
||||||
updateTenant,
|
updateTenant,
|
||||||
} from "../../../lib/adminApi";
|
} from "../../../lib/adminApi";
|
||||||
import { t } from "../../../lib/i18n";
|
import { t } from "../../../lib/i18n";
|
||||||
@@ -414,6 +416,27 @@ function TenantListPage() {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const statusMutation = useMutation({
|
||||||
|
mutationFn: ({
|
||||||
|
tenantId,
|
||||||
|
status,
|
||||||
|
}: {
|
||||||
|
tenantId: string;
|
||||||
|
status: string;
|
||||||
|
}) => updateTenant(tenantId, { status }),
|
||||||
|
onSuccess: () => {
|
||||||
|
query.refetch();
|
||||||
|
toast.success(
|
||||||
|
t("msg.admin.tenants.bulk.update_success", "선택한 테넌트들의 상태가 수정되었습니다."),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
onError: () => {
|
||||||
|
toast.error(
|
||||||
|
t("msg.admin.tenants.bulk.update_error", "테넌트 일괄 상태 변경에 실패했습니다."),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
const handleApplyBulkStatus = () => {
|
const handleApplyBulkStatus = () => {
|
||||||
if (selectedIds.length === 0 || !selectedBulkStatus) return;
|
if (selectedIds.length === 0 || !selectedBulkStatus) return;
|
||||||
bulkUpdateStatusMutation.mutate({
|
bulkUpdateStatusMutation.mutate({
|
||||||
@@ -965,6 +988,8 @@ function TenantListPage() {
|
|||||||
onSelectAll={handleSelectAll}
|
onSelectAll={handleSelectAll}
|
||||||
search={search}
|
search={search}
|
||||||
deletableTenants={deletableTenants}
|
deletableTenants={deletableTenants}
|
||||||
|
statusMutation={statusMutation}
|
||||||
|
profile={profile}
|
||||||
sortConfig={sortConfig}
|
sortConfig={sortConfig}
|
||||||
requestSort={requestSort}
|
requestSort={requestSort}
|
||||||
getSortIcon={getSortIcon}
|
getSortIcon={getSortIcon}
|
||||||
@@ -1541,6 +1566,13 @@ const TenantHierarchyView: React.FC<{
|
|||||||
onSelectAll: (checked: boolean) => void;
|
onSelectAll: (checked: boolean) => void;
|
||||||
search: string;
|
search: string;
|
||||||
deletableTenants: TenantSummary[];
|
deletableTenants: TenantSummary[];
|
||||||
|
statusMutation: UseMutationResult<
|
||||||
|
TenantSummary,
|
||||||
|
Error,
|
||||||
|
{ tenantId: string; status: string },
|
||||||
|
unknown
|
||||||
|
>;
|
||||||
|
profile: UserProfileResponse | undefined;
|
||||||
sortConfig: SortConfig<TenantSortKey> | null;
|
sortConfig: SortConfig<TenantSortKey> | null;
|
||||||
requestSort: (key: TenantSortKey) => void;
|
requestSort: (key: TenantSortKey) => void;
|
||||||
getSortIcon: (key: TenantSortKey) => React.ReactNode;
|
getSortIcon: (key: TenantSortKey) => React.ReactNode;
|
||||||
@@ -1557,6 +1589,8 @@ const TenantHierarchyView: React.FC<{
|
|||||||
onSelectAll,
|
onSelectAll,
|
||||||
search,
|
search,
|
||||||
deletableTenants,
|
deletableTenants,
|
||||||
|
statusMutation,
|
||||||
|
profile,
|
||||||
sortConfig,
|
sortConfig,
|
||||||
requestSort,
|
requestSort,
|
||||||
getSortIcon,
|
getSortIcon,
|
||||||
|
|||||||
@@ -55,6 +55,10 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: ./adminfront/Dockerfile
|
dockerfile: ./adminfront/Dockerfile
|
||||||
|
args:
|
||||||
|
VITE_ADMIN_PUBLIC_URL: ${ADMINFRONT_URL}
|
||||||
|
VITE_OIDC_AUTHORITY: ${VITE_OIDC_AUTHORITY}
|
||||||
|
VITE_OIDC_CLIENT_ID: adminfront
|
||||||
container_name: baron_adminfront
|
container_name: baron_adminfront
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
@@ -80,6 +84,10 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: ./devfront/Dockerfile
|
dockerfile: ./devfront/Dockerfile
|
||||||
|
args:
|
||||||
|
VITE_DEVFRONT_PUBLIC_URL: ${DEVFRONT_URL}
|
||||||
|
VITE_OIDC_AUTHORITY: ${VITE_OIDC_AUTHORITY}
|
||||||
|
VITE_OIDC_CLIENT_ID: devfront
|
||||||
container_name: baron_devfront
|
container_name: baron_devfront
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
|||||||
Reference in New Issue
Block a user