Skip to content

Commit

Permalink
Merge pull request #398 from amansinghbais/395-shipping-order-view
Browse files Browse the repository at this point in the history
Improved: clearing user preference state on logout, showShippingOrder set to false by default (#395)
  • Loading branch information
ravilodhi authored Jun 18, 2024
2 parents 10b3da5 + 2a76f20 commit 2fb5191
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/modules/user/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const userModule: Module<UserState, RootState> = {
currentFacility: {},
instanceUrl: '',
preference: {
showShippingOrders: true,
showShippingOrders: false,
showPackingSlip: false,
configurePicker: false
},
Expand Down
5 changes: 5 additions & 0 deletions src/store/modules/user/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ const mutations: MutationTree <UserState> = {
state.current = {}
state.currentFacility = {}
state.permissions = []
state.preference= {
showShippingOrders: false,
showPackingSlip: false,
configurePicker: false
}
},
[types.USER_INFO_UPDATED] (state, payload) {
state.current = payload
Expand Down

0 comments on commit 2fb5191

Please sign in to comment.