-
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: flow to create facility #29
Conversation
src/services/UserService.ts
Outdated
@@ -136,8 +136,26 @@ const getUserProfile = async (token: any): Promise<any> => { | |||
} | |||
} | |||
|
|||
const createFacilityLogin = async (payload: any): Promise <any> => { |
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.
Rename this to createFacilityUser as we are not creating userLogin here.
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.
Done sir
@@ -146,6 +146,46 @@ const actions: ActionTree<FacilityState, RootState> = { | |||
commit(types.FACILITY_CURRENT_UPDATED, facility) | |||
}, | |||
|
|||
async fetchCreatedFacility({ commit, state }, payload) { |
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.
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); |
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.
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?
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.
Updated sir
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