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: functionality to save 'auto cancel days' (#2cxr1cx) #213

Merged
merged 4 commits into from
Aug 19, 2022

Conversation

rathoreprashant
Copy link
Contributor

@rathoreprashant rathoreprashant commented Aug 4, 2022

Related Issues

Closes #

Short Description and Why It's Useful

Make a service (updateProductStore) and add a save button to the UI to save changes when the user updates auto cancel days settings.

Screenshots of Visual Changes before/after (If There Are Any)

autoCancelDays.mp4

IMPORTANT NOTICE - Remember to add changelog entry

Contribution and Currently Important Rules Acceptance

 make a service (updateProductStore) and add a save button to the UI to save changes when user updates auto cancel days settings.
Copy link
Contributor

@dt2patel dt2patel left a comment

Choose a reason for hiding this comment

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

Ui looks good

@@ -82,7 +82,10 @@
</ion-card-header>
<ion-item>
<ion-label class="ion-text-wrap">{{ $t("Days") }}</ion-label>
<ion-input :placeholder="$t('before auto cancelation')" />
<ion-input :placeholder="$t('before auto cancelation')" v-model.number="autoCancelDays" type="number" />
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should also repopulate the already set value

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 sir

…r handling (#2cxr1cx)

used perform find to get the auto cancel days and added toast when auto cancel days are updated
src/views/Orders.vue Outdated Show resolved Hide resolved
src/views/Orders.vue Outdated Show resolved Hide resolved
src/views/Orders.vue Outdated Show resolved Hide resolved
src/views/Orders.vue Outdated Show resolved Hide resolved
@@ -424,6 +446,25 @@ export default defineComponent({
}
});
this.store.dispatch('webhook/fetchWebhooks')

const payload = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Implement a separate method to perform this

@adityasharma7 adityasharma7 merged commit b0eba69 into hotwax:main Aug 19, 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.

4 participants