Skip to content

Commit dbd89a4

Browse files
authored
Merge pull request #213 from TaskFlow-CLAP/CLAP-485
CLAP-485 프로필 사진 수정 완료 후, 페이지 이동 경고 팝업 표시되는 오류 수정
2 parents d870e55 + a32bda6 commit dbd89a4

File tree

7 files changed

+21
-6
lines changed

7 files changed

+21
-6
lines changed

src/components/common/EditInformation.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ const validateName = () => {
199199
200200
const checkChange = () => {
201201
if (
202+
imageDelete.value ||
202203
selectedFile.value ||
203204
info.value.name != name.value ||
204205
info.value.notificationSettingInfo.kakaoWork != kakaoWorkCheck.value ||
@@ -312,6 +313,8 @@ const handleSubmit = async () => {
312313
313314
try {
314315
await patchEditInfo(formData)
316+
selectedFile.value = null
317+
imageDelete.value = false
315318
isModalVisible.value = false
316319
isSuccessModalVisible.value = true
317320
await memberStore.updateMemberInfoWithToken()

src/components/member-management/MemberManagementFilterBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="flex gap-4">
2+
<div class="flex gap-4 z-40">
33
<FilterInput
44
title="이름"
55
:value="params.name"

src/components/my-task/MyTaskFilterBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="flex gap-4">
2+
<div class="flex gap-4 z-40">
33
<FilterDropdown
44
title="조회 기간"
55
:option-list="TERM_LIST"

src/components/request-approve/ManagerDropdown.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div>
33
<div class="flex text-xs gap-x-1 mb-2">
4-
<p class="text-disabled font-semibold">담당자 변경</p>
4+
<p class="text-disabled font-semibold">담당자</p>
55
<p class="text-red-1">*</p>
66
<p
77
v-if="isInvalidateState === 'manager'"

src/components/request-history/RequestHistoryFilterBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="flex gap-4">
2+
<div class="flex gap-4 z-40">
33
<FilterDropdown
44
title="조회 기간"
55
:option-list="TERM_LIST"

src/components/requested/RequestedFilterBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="flex gap-4">
2+
<div class="flex gap-4 z-40">
33
<FilterDropdown
44
title="조회 기간"
55
:option-list="TERM_LIST"

src/components/task-management/LabelManagementLine.vue

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,16 @@ const editValue = ref<LabelDataTypes>({
103103
labelId: 0
104104
})
105105
106-
const handleEdit = () => (isEdit.value = !isEdit.value)
106+
const handleEdit = () => {
107+
isEdit.value = !isEdit.value
108+
if (!isEdit.value) {
109+
prevName.value = ''
110+
}
111+
}
107112
113+
const prevName = ref('')
108114
const startEdit = async (label: LabelDataTypes) => {
115+
prevName.value = label.labelName
109116
await nextTick()
110117
handleEdit()
111118
editValue.value = { ...label }
@@ -135,6 +142,11 @@ const updateLabelColor = (color: LabelColorTypes) => {
135142
}
136143
137144
const finishEdit = async () => {
145+
if (editValue.value.labelName === prevName.value) {
146+
prevName.value = ''
147+
handleEdit()
148+
return
149+
}
138150
if (editValue.value.labelName !== '' && editValue.value.labelName.length <= 10) {
139151
await patchLabelAdmin(editValue.value)
140152
emit('updateLabels')

0 commit comments

Comments
 (0)