로그인 전 내보내기 비활성화

- 로그인 전에는 내보내기 버튼을 disabled 처리

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dsyoon
2026-02-08 09:41:10 +09:00
parent db6ab94906
commit 17a6790abc

View File

@@ -798,6 +798,8 @@
const lockMsg = "관리 기능은 로그인(관리자 이메일) 후 사용 가능합니다.";
el.btnAdd.disabled = !state.canManage;
el.btnImport.disabled = !state.canManage;
// 요청: 로그인 전에는 내보내기도 비활성화
el.btnExport.disabled = auth.mode === "enabled" ? !auth.user : false;
if (!state.canManage) {
el.btnAdd.title = lockMsg;
@@ -806,6 +808,9 @@
el.btnAdd.title = "";
el.btnImport.title = "";
}
if (el.btnExport.disabled) el.btnExport.title = "내보내기는 로그인 후 사용 가능합니다.";
else el.btnExport.title = "";
}
async function initAuth() {