Skip to content

Resolution to QR code scanning issue #115

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

Merged
merged 12 commits into from
Jan 27, 2021
Merged

Conversation

VibroAxe
Copy link
Contributor

@VibroAxe VibroAxe commented Jan 26, 2021

Adjusts the javascript handling to fix the tab change mechanic as described in #114
Resolves absolute pathing issues from #111
General quality of life codes fixes within QR code

Fix javascript QR code selection
Fix sidebar not being updated when spool selecting by QR Code
Display the SpoolManager tab when scanning a spoolManager barcode
Perform tab switch after selectSpool to allow page to finish loading
@VibroAxe
Copy link
Contributor Author

This probably wants a squash commit

// - Open SpoolItem
self.apiClient.callSelectSpool(selectedSpoolId, function(responseData){
//Select the SpoolManager tab
$('a[href="#tab_plugin_SpoolManager"]').tab('show')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@OllisGit Do you know if there Is there a better way of doing this?

Fixes OllisGit#111 using relative pathing,
It might be better to do this using jinja native but I can't currently find a basepath reference
@VibroAxe
Copy link
Contributor Author

Also fixes #111

Use flask's url_for instead of hard coding
Url_for needs full class pathing
Use proper routing parsing for generateQRCode
Can't use fully qualified procedure reference as we don't know the params yet
Fix incorrect plugin path
QR code was using internal URL
@VibroAxe
Copy link
Contributor Author

Added some general quality of life improvements (mainly url_for), this might want to be a squash/refactored commit

@OllisGit
Copy link
Owner

Thanks a lot for the PR!

My fix looks similar!.

@VibroAxe
Copy link
Contributor Author

@OllisGit Any chance of a version bump to pull this into 1.3.4? It's working off master but not of 1.3.3

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.

2 participants