forked from baron/baron-sso
dev 병합 code check 수정
This commit is contained in:
@@ -124,7 +124,12 @@ export default function DeveloperRequestPage() {
|
||||
|
||||
const handleCancelApproval = (id: number) => {
|
||||
if (!adminNotes[id]) {
|
||||
alert(t("msg.dev.request.need_cancel_notes", "승인 취소 사유를 입력해주세요."));
|
||||
alert(
|
||||
t(
|
||||
"msg.dev.request.need_cancel_notes",
|
||||
"승인 취소 사유를 입력해주세요.",
|
||||
),
|
||||
);
|
||||
return;
|
||||
}
|
||||
cancelApprovalMutation.mutate({ id, adminNotes: adminNotes[id] });
|
||||
@@ -184,14 +189,20 @@ export default function DeveloperRequestPage() {
|
||||
<TableHeader>
|
||||
<TableRow>
|
||||
{isSuperAdmin && (
|
||||
<TableHead>{t("ui.dev.request.table.user", "사용자")}</TableHead>
|
||||
<TableHead>
|
||||
{t("ui.dev.request.table.user", "사용자")}
|
||||
</TableHead>
|
||||
)}
|
||||
<TableHead>{t("ui.dev.request.table.org", "소속")}</TableHead>
|
||||
<TableHead>
|
||||
{t("ui.dev.request.table.reason", "신청 사유")}
|
||||
</TableHead>
|
||||
<TableHead>{t("ui.dev.request.table.status", "상태")}</TableHead>
|
||||
<TableHead>{t("ui.dev.request.table.date", "신청일")}</TableHead>
|
||||
<TableHead>
|
||||
{t("ui.dev.request.table.status", "상태")}
|
||||
</TableHead>
|
||||
<TableHead>
|
||||
{t("ui.dev.request.table.date", "신청일")}
|
||||
</TableHead>
|
||||
{isSuperAdmin && (
|
||||
<TableHead className="text-right">
|
||||
{t("ui.dev.request.table.actions", "관리")}
|
||||
@@ -312,7 +323,10 @@ export default function DeveloperRequestPage() {
|
||||
) : (
|
||||
<span className="text-muted-foreground text-xs italic">
|
||||
{req.status === "cancelled"
|
||||
? t("ui.dev.request.status.cancelled", "승인 취소됨")
|
||||
? t(
|
||||
"ui.dev.request.status.cancelled",
|
||||
"승인 취소됨",
|
||||
)
|
||||
: t("ui.common.rejected", "반려됨")}
|
||||
</span>
|
||||
)}
|
||||
@@ -379,7 +393,6 @@ function StatusBadge({ status }: { status: string }) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
interface RequestAccessModalProps {
|
||||
isOpen: boolean;
|
||||
onClose: () => void;
|
||||
|
||||
@@ -444,10 +444,7 @@ export async function fetchDeveloperRequests(status?: string) {
|
||||
return data;
|
||||
}
|
||||
|
||||
export async function approveDeveloperRequest(
|
||||
id: number,
|
||||
adminNotes: string,
|
||||
) {
|
||||
export async function approveDeveloperRequest(id: number, adminNotes: string) {
|
||||
const { data } = await apiClient.post<{ status: string }>(
|
||||
`/dev/developer-request/${id}/approve`,
|
||||
{ adminNotes },
|
||||
@@ -455,10 +452,7 @@ export async function approveDeveloperRequest(
|
||||
return data;
|
||||
}
|
||||
|
||||
export async function rejectDeveloperRequest(
|
||||
id: number,
|
||||
adminNotes: string,
|
||||
) {
|
||||
export async function rejectDeveloperRequest(id: number, adminNotes: string) {
|
||||
const { data } = await apiClient.post<{ status: string }>(
|
||||
`/dev/developer-request/${id}/reject`,
|
||||
{ adminNotes },
|
||||
|
||||
@@ -325,6 +325,51 @@ loaded_count = ""
|
||||
loading = ""
|
||||
subtitle = ""
|
||||
|
||||
[msg.dev.request]
|
||||
admin_desc = ""
|
||||
approved = ""
|
||||
cancelled = ""
|
||||
empty = ""
|
||||
need_cancel_notes = ""
|
||||
need_notes = ""
|
||||
rejected = ""
|
||||
user_desc = ""
|
||||
|
||||
[msg.dev.request.modal]
|
||||
desc = ""
|
||||
email = ""
|
||||
name = ""
|
||||
org = ""
|
||||
phone = ""
|
||||
reason = ""
|
||||
reason_placeholder = ""
|
||||
role = ""
|
||||
title = ""
|
||||
|
||||
[msg.dev.request.status]
|
||||
approved = ""
|
||||
cancelled = ""
|
||||
pending = ""
|
||||
rejected = ""
|
||||
|
||||
[msg.dev.request.table]
|
||||
actions = ""
|
||||
date = ""
|
||||
org = ""
|
||||
reason = ""
|
||||
status = ""
|
||||
user = ""
|
||||
|
||||
[msg.dev.request.list]
|
||||
title = ""
|
||||
|
||||
[msg.dev.request.admin]
|
||||
notes_placeholder = ""
|
||||
|
||||
[msg.dev.request.cancel]
|
||||
approval = ""
|
||||
notes_placeholder = ""
|
||||
|
||||
[msg.dev.clients]
|
||||
load_error = ""
|
||||
loading = ""
|
||||
@@ -1290,6 +1335,42 @@ scope_badge = ""
|
||||
audit_logs = ""
|
||||
clients = ""
|
||||
logout = ""
|
||||
developer_request = ""
|
||||
|
||||
[ui.dev.welcome]
|
||||
btn_request = ""
|
||||
|
||||
[ui.dev.request]
|
||||
admin_notes_placeholder = ""
|
||||
cancel_approval = ""
|
||||
cancel_notes_placeholder = ""
|
||||
|
||||
[ui.dev.request.list]
|
||||
title = ""
|
||||
|
||||
[ui.dev.request.modal]
|
||||
email = ""
|
||||
name = ""
|
||||
org = ""
|
||||
phone = ""
|
||||
reason = ""
|
||||
reason_placeholder = ""
|
||||
role = ""
|
||||
title = ""
|
||||
|
||||
[ui.dev.request.status]
|
||||
approved = ""
|
||||
cancelled = ""
|
||||
pending = ""
|
||||
rejected = ""
|
||||
|
||||
[ui.dev.request.table]
|
||||
actions = ""
|
||||
date = ""
|
||||
org = ""
|
||||
reason = ""
|
||||
status = ""
|
||||
user = ""
|
||||
|
||||
[ui.dev.audit]
|
||||
load_more = ""
|
||||
|
||||
Reference in New Issue
Block a user