From 71aef006087cb53b0d1ea1fbd521fb6446231ace Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Mon, 4 Dec 2023 18:38:34 +0530 Subject: [PATCH 1/5] Improved: code for time modal in customScheduleModal (#44) --- src/components/CustomScheduleModal.vue | 81 ++++++++++++++++---------- 1 file changed, 50 insertions(+), 31 deletions(-) diff --git a/src/components/CustomScheduleModal.vue b/src/components/CustomScheduleModal.vue index 4ddfc5aa..f85574e9 100644 --- a/src/components/CustomScheduleModal.vue +++ b/src/components/CustomScheduleModal.vue @@ -27,17 +27,15 @@

{{ translate(day.charAt(0).toUpperCase() + day.slice(1)) }}

- - -

{{ translate("Start Time") }}

-
-
+ + {{ selectedTimesForWeek[day+'StartTime'] ? getTime(selectedTimesForWeek[day+'StartTime']) : 'Start Time' }} + + - - - -

{{ translate("End Time") }}

-
-
+ + {{ selectedTimesForWeek[day+'EndTime'] ? getTime(selectedTimesForWeek[day+'EndTime']) : 'End Time' }} + + @@ -46,27 +44,29 @@

{{ translate("Open and close time") }}

- - -

{{ translate("Start Time") }}

-
-
+ + {{ selectedTimesForWeek['DailyStartTime'] ? getTime(selectedTimesForWeek['DailyStartTime']) : 'Start Time' }} + + - - - -

{{ translate("End Time") }}

-
-
+ + {{ selectedTimesForWeek['DailyEndTime'] ? getTime(selectedTimesForWeek['DailyEndTime']) : 'End Time' }} + + - - - - - - + + + + @@ -75,14 +75,14 @@ - +