Skip to content

Commit

Permalink
Merge pull request #224 from shanmukhdutt/inventory-count-213
Browse files Browse the repository at this point in the history
Improved: Added Toast Notification on Item Removal from Upload Page(#213)
  • Loading branch information
ymaheshwari1 authored Jan 3, 2024
2 parents c6c44ff + 5bfacfc commit a6b2369
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"inventory variance": "inventory variance",
"Instance Url": "Instance Url",
"Item added to upload list": "Item added to upload list",
"Item removed from upload list":"Item removed from upload list",
"Loading": "Loading",
"Location": "Location",
"Log variance": "Log variance",
Expand Down
4 changes: 3 additions & 1 deletion src/views/Upload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ 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';
import { showToast } from '@/utils';
export default defineComponent({
name: "Upload",
Expand Down Expand Up @@ -103,6 +104,7 @@ export default defineComponent({
methods: {
removeItem (sku: any) {
this.store.dispatch('product/removeItemFromUploadProducts', sku)
showToast(this.$t("Item removed from upload list"));
},
async presentAlertOnUpload() {
const alert = await alertController.create({
Expand Down

0 comments on commit a6b2369

Please sign in to comment.