Skip to content

Commit

Permalink
feat: update ScheduleSettingForm for showing already created time data
Browse files Browse the repository at this point in the history
Signed-off-by: 이승연 <sylee1274@mz.co.kr>
  • Loading branch information
seungyeoneeee committed Jan 8, 2025
1 parent b257366 commit 93d9e01
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const state = reactive({
selectedDayButton: ['MON', 'TUE', 'WED', 'THU', 'FRI'] as DayType[],
start: 0,
end: 24,
startHourTimeList: computed<SelectDropdownMenuItem[]>(() => range(state.start, state.end).map((h) => ({
startHourTimeList: computed<SelectDropdownMenuItem[]>(() => range(0, state.end).map((h) => ({
label: `${h.toString().padStart(2, '0')}:00`,
name: h.toString(),
}))),
Expand Down Expand Up @@ -176,13 +176,13 @@ onMounted(() => {
<div class="flex items-center gap-2">
<p-select-dropdown :menu="state.startHourTimeList"
:selected="state.start"
placeholder="00:00"
:placeholder="state.startHourTimeList[state.start].label"
@select="handleSelectDropdown('start', $event)"
/>
<span>{{ $t('COMMON.SCHEDULE_SETTING.TO') }}</span>
<p-select-dropdown :menu="state.endHourTimeList"
:selected="state.end"
placeholder="24:00"
:placeholder="state.endHourTimeList[state.end - state.start - 1].label"
@select="handleSelectDropdown('end', $event)"
/>
</div>
Expand Down

0 comments on commit 93d9e01

Please sign in to comment.