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

Added shop selector to menu footer (#2a7ymj3) #283

Merged
merged 29 commits into from
Dec 6, 2022
Merged

Added shop selector to menu footer (#2a7ymj3) #283

merged 29 commits into from
Dec 6, 2022

Conversation

alsoK2maan
Copy link
Contributor

Related Issues

Closes #129

Short Description and Why It's Useful

Implemented changes to resolve infinite loading spinner on refreshJobs.

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

IMPORTANT NOTICE - Remember to add changelog entry

Contribution and Currently Important Rules Acceptance

Mayank909 and others added 21 commits May 10, 2022 20:04
…efined and passes event instead of undefined on refresh job(#2a7ymj3)
@adityasharma7
Copy link
Contributor

@k2maan
I think we need to handle case for More jobs

@alsoK2maan
Copy link
Contributor Author

@adityasharma7 sir, the more jobs section works as expected with the shop selector footer.

"enumTypeId": "ORDER_SYS_JOB"
}
});
this.store.dispatch("job/fetchJobs", {
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 batch jobs should have enumTypeId as ORDER_SYS_JOB and we are already fetching those jobs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sir, the More Jobs section is not visible if we remove the code.

@@ -145,7 +147,6 @@ export default defineComponent({
async refreshJobs(event: any) {
Copy link
Contributor

Choose a reason for hiding this comment

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

'event' is defined but never used

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.

if(this.segmentSelected === 'pending') {
this.getPendingJobs().then(() => {
if(event) event.target.complete();
Copy link
Contributor

Choose a reason for hiding this comment

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

Check if it is not breaking pull to refresh (ion-refresher)
https://ionicframework.com/docs/api/refresher#complete

Copy link
Contributor

Choose a reason for hiding this comment

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

I tried "pull to refresh" on Pipeline page & loader keeps on spinning.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's running infinitely. How should I proceed now?

Copy link
Contributor

Choose a reason for hiding this comment

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

We could pass event as undefined for all the other cases then pull to refresh

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done sir.

if(this.segmentSelected === 'pending') {
this.getPendingJobs().then(() => {
if(event) event.target.complete();
Copy link
Contributor

Choose a reason for hiding this comment

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

We could pass event as undefined for all the other cases then pull to refresh

@adityasharma7 adityasharma7 merged commit c2abc3e into hotwax:main Dec 6, 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.

Add shop selector to menu footer
6 participants