Skip to content

Commit

Permalink
Merge pull request #195 from ShanePark/#feat
Browse files Browse the repository at this point in the history
fix: do not show other schedules on edit mode
  • Loading branch information
ShanePark authored Sep 12, 2024
2 parents 2a1f332 + 717ecdd commit 1f30cf7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/resources/templates/duty/duty.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ <h5 class="modal-title">시간표 공개 대상 설정</h5>
</div>
<div class="schedules mt-4">
<div class="schedule card shadow"
v-if="!isCreateScheduleMode && (editingSchedule.id == null || isEditing(schedule) )"
:class="{'visibility-public': schedule.visibility == 'PUBLIC', 'visibility-friends': schedule.visibility == 'FRIENDS', 'visibility-private': schedule.visibility == 'PRIVATE'}"
v-for="(schedule, s_index) in schedulesByDays[detailView.index]"
:id="'schedule-' + schedule.id">
Expand Down Expand Up @@ -750,13 +751,8 @@ <h5 class="modal-title">시간표 공개 대상 설정</h5>
}
,
scheduleCreateMode() {
app.cancelEditMode();
app.isCreateScheduleMode = true;
const schedules = document.querySelector('#detail-view-modal .schedules');
console.log(schedules);
requestAnimationFrame(() => {
schedules.scrollTop = schedules.scrollHeight;
});
},
cancelCreateSchedule() {
app.isCreateScheduleMode = false;
Expand Down

0 comments on commit 1f30cf7

Please sign in to comment.