-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented: operating hours functionality on facility details page (#28) #31
Conversation
…stomSchedule modal and operating hours popover (hotwax#28)
this.store.dispatch('facility/fetchFacilityCalendar', { facilityId: this.facilityId }) | ||
modalController.dismiss() | ||
}, | ||
async removeCalendarFromFacility() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Call the service directly instead of wrapping in a function.
<ion-list lines="none" v-if="isDailyTimingsChecked"> | ||
<ion-item v-for="(day, index) in days" :key="index"> | ||
<ion-label> | ||
<p>{{ translate(day) }}</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure all the days are added in the translations file.
…fetching calendar timings with calendar list (hotwax#28)
src/store/modules/util/actions.ts
Outdated
try { | ||
resp = await UtilService.fetchCalendars({ | ||
inputFields: { | ||
facilityId: payload.facilityId |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this facility filter.
src/store/modules/util/actions.ts
Outdated
|
||
resp = await UtilService.fetchCalendarWeekTimings({ | ||
inputFields: { | ||
calendarWeekId: payload.calendarWeekId |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we need to fetch calendar weeks based on the calenders fetched in the first step.
Related Issues
Closes: #28
Short Description and Why It's Useful
Implemented operating hours functionality in facility details page.
Screenshots of Visual Changes before/after (If There Are Any)
Contribution and Currently Important Rules Acceptance