-
Notifications
You must be signed in to change notification settings - Fork 27
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 revert functionality#22xdxhp #22
Conversation
src/components/ProductPopover.vue
Outdated
@@ -31,6 +32,9 @@ export default defineComponent({ | |||
}), | |||
}, | |||
methods: { | |||
onlyRevert() { | |||
this.isVirtual ? this.onlyRevertSingleProduct() : this.onlyRevertParentProduct(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If isVirtual means it is virtual product, I think we should use onlyRevertParentProduct and for variant we should use onlyRevertSingleProduct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the code.
src/components/ProductPopover.vue
Outdated
@@ -31,6 +32,9 @@ export default defineComponent({ | |||
}), | |||
}, | |||
methods: { | |||
onlyRevert() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onlyRevert() { | |
revert() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made the requested change.
src/components/ProductPopover.vue
Outdated
@@ -45,12 +49,41 @@ export default defineComponent({ | |||
element.isSelected = element.internalName === this.id; | |||
}); | |||
popoverController.dismiss({ dismissed: true }); | |||
}, | |||
onlyRevertSingleProduct() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onlyRevertSingleProduct() { | |
revertProduct() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made the requested change.
src/components/ProductPopover.vue
Outdated
this.store.dispatch('order/updatedOrderListItems', items) | ||
popoverController.dismiss({ dismissed: true }); | ||
}, | ||
onlyRevertParentProduct(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onlyRevertParentProduct(){ | |
revertParentProduct(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made the requested change.
src/views/OrderDetail.vue
Outdated
@@ -329,6 +329,10 @@ export default defineComponent({ | |||
selectProduct(item: any, event: any) { | |||
item.isSelected = event.detail.checked; | |||
}, | |||
revertAllChanges() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revertAllChanges() { | |
revertAll() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made the requested change.
changelogs/unreleased/-22xdxhp.yml
Outdated
@@ -0,0 +1,6 @@ | |||
--- | |||
title: Implemented revert functionality(#22xdxhp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove ticket id from changelog.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
No description provided.