Skip to content

Commit 851ba8e

Browse files
committed
♻️ [refactor] : 생성 / 수정 시 텍스트 표시 구분
1 parent 2da1d4b commit 851ba8e

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

src/components/task-management/CategoryAdd.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
:is-open="isModalVisible.add"
55
type="successType"
66
@close="handleAddModal">
7-
<template #header>카테고리가 등록되었습니다</template>
7+
<template #header>카테고리가 {{ route.params.id ? '수정' : '등록' }}되었습니다</template>
88
</ModalView>
99
<ModalView
1010
:is-open="isModalVisible.cancel"
1111
type="warningType"
1212
@close="handleCancelModal"
1313
@click="handleGoBack">
14-
<template #header>생성을 취소 하시겠습니까?</template>
14+
<template #header>{{ route.params.id ? '수정' : '생성' }}을 취소 하시겠습니까?</template>
1515
<template #body>작성하신 내용은 사라집니다</template>
1616
</ModalView>
1717
<ModalView
@@ -42,7 +42,7 @@
4242
:handle-cancel="handleCancel"
4343
:handle-submit="handleSubmit"
4444
cancel-text="취소"
45-
submit-text="생성" />
45+
:submit-text="route.params.id ? '수정' : '등록'" />
4646
</div>
4747
</template>
4848

src/views/CategoryFirstAdd.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="form-view-container">
3-
<TitleBar title="1차 카테고리 생성" />
3+
<TitleBar :title="`1차 카테고리 ${$route.params.id ? '수정' : '등록'}`" />
44
<CategoryAdd categoryStep="1" />
55
</div>
66
</template>
@@ -9,5 +9,3 @@
99
import TitleBar from '@/components/TitleBar.vue'
1010
import CategoryAdd from '../components/task-management/CategoryAdd.vue'
1111
</script>
12-
13-
<style scoped></style>

src/views/CategorySecondAdd.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="form-view-container">
3-
<TitleBar title="2차 카테고리 생성" />
3+
<TitleBar :title="`2차 카테고리 ${$route.params.id ? '수정' : '등록'}`" />
44
<CategoryAdd categoryStep="2" />
55
</div>
66
<div class="w-full bg-body"></div>
@@ -10,5 +10,3 @@
1010
import TitleBar from '@/components/TitleBar.vue'
1111
import CategoryAdd from '../components/task-management/CategoryAdd.vue'
1212
</script>
13-
14-
<style scoped></style>

0 commit comments

Comments
 (0)