Skip to content

Commit

Permalink
Improved: clearing barcode identification pref from state on logout, …
Browse files Browse the repository at this point in the history
…updated type, and updated comment (hotwax#845)
  • Loading branch information
amansinghbais committed Nov 7, 2024
1 parent 54e738f commit 340b767
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/store/modules/user/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ const actions: ActionTree<UserState, RootState> = {
this.dispatch("orderLookup/clearOrderLookup")
this.dispatch('user/clearNotificationState')
this.dispatch('util/updateForceScanStatus', false)
this.dispatch('util/updateBarcodeIdentificationPref', "internalName")
this.dispatch('user/clearPartialOrderRejectionConfig')
this.dispatch('user/clearCollateralRejectionConfig')
this.dispatch('transferorder/clearTransferOrdersList')
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/util/UtilState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ export default interface UtilState {
facilities: any;
shipmentGatewayConfigs: any;
isForceScanEnabled: boolean;
barcodeIdentificationPref: any;
barcodeIdentificationPref: string;
}
2 changes: 1 addition & 1 deletion src/store/modules/util/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ const actions: ActionTree<UtilState, RootState> = {
}

// not checking for resp success and fail case as every time we need to update the state with the
// default value when creating a scan setting
// default value when creating a store setting
commit(types.UTIL_BARCODE_IDENTIFICATION_PREF_UPDATED, "internalName")
return fromDate;
},
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const utilModule: Module<UtilState, RootState> = {
facilities: [],
shipmentGatewayConfigs: [],
isForceScanEnabled: false,
barcodeIdentificationPref: ""
barcodeIdentificationPref: "internalName"
},
getters,
actions,
Expand Down

0 comments on commit 340b767

Please sign in to comment.