Skip to content
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

Merged
merged 18 commits into from
Nov 29, 2023

Conversation

amansinghbais
Copy link
Contributor

@amansinghbais amansinghbais commented Nov 27, 2023

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)

Screenshot from 2023-11-29 11-48-18
Screenshot from 2023-11-29 11-49-03
Screenshot from 2023-11-29 11-49-06
Screenshot from 2023-11-29 11-48-33
Screenshot from 2023-11-29 11-48-49
Screenshot from 2023-11-29 12-05-43

Contribution and Currently Important Rules Acceptance

this.store.dispatch('facility/fetchFacilityCalendar', { facilityId: this.facilityId })
modalController.dismiss()
},
async removeCalendarFromFacility() {

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>

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.

@amansinghbais amansinghbais changed the title Implemented: UI for operating hours functionality (#28) Implemented: operating hours functionality on facility details page (#28) Nov 29, 2023
try {
resp = await UtilService.fetchCalendars({
inputFields: {
facilityId: payload.facilityId
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this facility filter.


resp = await UtilService.fetchCalendarWeekTimings({
inputFields: {
calendarWeekId: payload.calendarWeekId
Copy link
Contributor

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.

src/components/CustomScheduleModal.vue Outdated Show resolved Hide resolved
@ravilodhi ravilodhi merged commit 70a3caf into hotwax:main Nov 29, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create UI for operating hours functionality
3 participants