- 관리자 전용 기본 분류 관리 화면(DefaultCategoryView, 계층 드래그) + 라우트/사이드바 링크 - adminApi 기본분류 CRUD/reorder - CategoryView '기존 분류 불러오기' → '기본 분류 불러오기'(관리자 정의 분류 복사) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -157,8 +157,8 @@ function removeCategory(c) {
|
||||
})
|
||||
}
|
||||
|
||||
function importExisting() {
|
||||
askConfirm('기존 분류 불러오기', '기존 내역에서 사용한 분류들을 목록으로 가져올까요?', async () => {
|
||||
function importDefaults() {
|
||||
askConfirm('기본 분류 불러오기', '관리자가 설정한 기본 분류를 내 분류로 가져올까요?\n같은 이름은 건너뜁니다.', async () => {
|
||||
error.value = null
|
||||
try {
|
||||
categories.value = await accountApi.importCategories()
|
||||
@@ -187,7 +187,7 @@ onBeforeUnmount(destroySortables)
|
||||
<header class="head">
|
||||
<h1>분류 관리</h1>
|
||||
<div class="head-actions">
|
||||
<button type="button" class="text-btn" @click="importExisting">기존 분류 불러오기</button>
|
||||
<button type="button" class="text-btn" @click="importDefaults">기본 분류 불러오기</button>
|
||||
<IconBtn icon="back" title="가계부로" @click="router.push('/account')" />
|
||||
</div>
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user