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: Added the support for using facility selector from dxp-component(#dxp/228) #218

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

R-Sourabh
Copy link
Contributor

Related Issues

hotwax/dxp-components#228

Short Description and Why It's Useful

  • Added support for using the facility selector on the settings page from the dxp-component.
  • Replaced the app-level facility state and updated the logic to use the dxp-component for facility state management.
  • Removed code related to storing/fetching facilities and currentFacility in the application.
  • Utilized getters from the user store in dxp-components across the entire application.

Contribution and Currently Important Rules Acceptance

</ion-select>
</ion-item>
</ion-card>
<DxpFacilitySwitcher @updateFacility="handleFacilityUpdate($event)"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<DxpFacilitySwitcher @updateFacility="handleFacilityUpdate($event)"/>
<DxpFacilitySwitcher @updateFacility="updateFacility(facility)"/>

async setFacility ({ commit, state }, payload) {
commit(types.USER_CURRENT_FACILITY_UPDATED, payload.facility);

async setFacilityUpdates ({ 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.

Suggested change
async setFacilityUpdates ({ commit, state }, payload) {
async setFacility({ commit, state }, payload) {

Improve indentation

import { useUserStore } from '@hotwax/dxp-components'

const getCurrentFacilityId = () => {
const currentFacility: any = useUserStore().getCurrentFacility;
Copy link
Contributor

Choose a reason for hiding this comment

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

Directly use useUserStore().getCurrentFacility wherever required as we only have a couple of places where this data is used.

…t and oms-api to latest(#dxp/288)

- Passed method to fetch good identification types in order to display product identifier options dynamically.
@R-Sourabh R-Sourabh marked this pull request as ready for review November 7, 2024 10:55
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.

2 participants