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

Implemented revert functionality#22xdxhp #22

Merged
merged 8 commits into from
Mar 30, 2022

Conversation

disha1202
Copy link
Contributor

No description provided.

@@ -31,6 +32,9 @@ export default defineComponent({
}),
},
methods: {
onlyRevert() {
this.isVirtual ? this.onlyRevertSingleProduct() : this.onlyRevertParentProduct();
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the code.

@@ -31,6 +32,9 @@ export default defineComponent({
}),
},
methods: {
onlyRevert() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
onlyRevert() {
revert() {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made the requested change.

@@ -45,12 +49,41 @@ export default defineComponent({
element.isSelected = element.internalName === this.id;
});
popoverController.dismiss({ dismissed: true });
},
onlyRevertSingleProduct() {
Copy link
Contributor

@adityasharma7 adityasharma7 Mar 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
onlyRevertSingleProduct() {
revertProduct() {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made the requested change.

this.store.dispatch('order/updatedOrderListItems', items)
popoverController.dismiss({ dismissed: true });
},
onlyRevertParentProduct(){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
onlyRevertParentProduct(){
revertParentProduct(){

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made the requested change.

@@ -329,6 +329,10 @@ export default defineComponent({
selectProduct(item: any, event: any) {
item.isSelected = event.detail.checked;
},
revertAllChanges() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
revertAllChanges() {
revertAll() {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made the requested change.

@@ -0,0 +1,6 @@
---
title: Implemented revert functionality(#22xdxhp)
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

@adityasharma7 adityasharma7 merged commit 531007a into hotwax:main Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants