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: flow to create facility #29

Merged
merged 9 commits into from
Nov 28, 2023
Merged

Implemented: flow to create facility #29

merged 9 commits into from
Nov 28, 2023

Conversation

alsoK2maan
Copy link

Related Issues

Closes #

Short Description and Why It's Useful

Screenshots of Visual Changes before/after (If There Are Any)

Contribution and Currently Important Rules Acceptance

@@ -136,8 +136,26 @@ const getUserProfile = async (token: any): Promise<any> => {
}
}

const createFacilityLogin = async (payload: any): Promise <any> => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Rename this to createFacilityUser as we are not creating userLogin here.

Copy link
Author

Choose a reason for hiding this comment

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

Done sir

@@ -146,6 +146,46 @@ const actions: ActionTree<FacilityState, RootState> = {
commit(types.FACILITY_CURRENT_UPDATED, facility)
},

async fetchCreatedFacility({ commit, state }, payload) {
Copy link
Contributor

Choose a reason for hiding this comment

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

There should already be some action to fetch facility details, as we already fetching facility details on the detail page.

}

emitter.emit("dismissLoader");
commit(types.FACILITY_CREATED_UPDATED, facility);
Copy link
Contributor

@ravilodhi ravilodhi Nov 28, 2023

Choose a reason for hiding this comment

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

I think no need to maintain a separate state we can use the same state that is used to store/fetch selected facility on the detail page?

Copy link
Author

Choose a reason for hiding this comment

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

Updated sir

@ravilodhi ravilodhi merged commit 61fb996 into hotwax:main Nov 28, 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.

3 participants