10.6 카테고리 유형/설정 관리(일반/특수/승인/레벨/익명/태그) o

This commit is contained in:
koreacomp5
2025-10-09 18:50:02 +09:00
parent a777c0ab73
commit c28698cd5c
3 changed files with 17 additions and 2 deletions

View File

@@ -27,6 +27,8 @@ export default function AdminBoardsPage() {
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
@@ -66,6 +68,13 @@ function Row({ b, onSave, saving }: { b: any; onSave: (b: any) => void; saving:
<td><input type="checkbox" checked={edit.allowAnonymousPost} onChange={(e) => setEdit({ ...edit, allowAnonymousPost: e.target.checked })} /></td>
<td><input type="checkbox" checked={edit.allowSecretComment} onChange={(e) => setEdit({ ...edit, allowSecretComment: e.target.checked })} /></td>
<td><input type="checkbox" checked={edit.requiresApproval} onChange={(e) => setEdit({ ...edit, requiresApproval: e.target.checked })} /></td>
<td>
<select value={edit.type} onChange={(e) => setEdit({ ...edit, type: e.target.value })}>
<option value="general">general</option>
<option value="special">special</option>
</select>
</td>
<td><input type="checkbox" checked={!!edit.isAdultOnly} onChange={(e) => setEdit({ ...edit, isAdultOnly: e.target.checked })} /></td>
<td><input type="number" value={edit.sortOrder} onChange={(e) => setEdit({ ...edit, sortOrder: Number(e.target.value) })} style={{ width: 80 }} /></td>
<td><button onClick={() => onSave(edit)} disabled={saving}>{saving ? "저장중" : "저장"}</button></td>
</tr>