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

Fixed: prevented updating negative inventory counts (#207) #228

Closed
wants to merge 12 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Improved: Added Toast Notification on Item Removal from Upload Page(#213
)
  • Loading branch information
shanmukhdutt committed Dec 6, 2023
commit 2dce920681d818df689c2a69288f4d9107f2f04d
2 changes: 2 additions & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"inventory variance": "inventory variance",
"Instance Url": "Instance Url",
"Item added to upload list": "Item added to upload list",
"Item removed successfully":"Item removed successfully",
"Loading": "Loading",
"Location": "Location",
"Log variance": "Log variance",
Expand Down Expand Up @@ -74,4 +75,5 @@
"Variance updated successfully": "Variance updated successfully",
"View": "View",
"You do not have permission to access this page": "You do not have permission to access this page"

}
1 change: 1 addition & 0 deletions src/store/modules/product/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const actions: ActionTree<ProductState, RootState> = {

async removeItemFromUploadProducts( {commit}, payload) {
commit(types.PRODUCT_REMOVE_FROM_UPLD_PRDTS, {sku: payload});
showToast(translate("Item removed successfully"));
},

async clearUploadProducts ({ commit }) {
Expand Down
2 changes: 1 addition & 1 deletion src/views/Upload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ import { colorPaletteOutline, resize, cloudUploadOutline } from 'ionicons/icons'
import { mapGetters, useStore } from 'vuex';
import { useRouter } from 'vue-router';
import { ShopifyImg } from '@hotwax/dxp-components';
import { Actions, hasPermission } from '@/authorization'
import { Actions, hasPermission } from '@/authorization'

export default defineComponent({
name: "Upload",
Expand Down