-
Notifications
You must be signed in to change notification settings - Fork 20
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
FIX: elekto version in UI #102
base: main
Are you sure you want to change the base?
Conversation
Nice, thanks, lemme test this out. |
elekto/templates/layouts/app.html
Outdated
@@ -49,6 +49,21 @@ | |||
document.getElementById('message').hidden = true | |||
}, 10000); | |||
} | |||
document.addEventListener('DOMContentLoaded', function () { | |||
// Fetch the version from the Flask API | |||
fetch('https://api.github.com/repos/elekto-io/elekto/releases/latest') |
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.
Am I reading this right? It seems to be pulling the latest version number from GitHub, rather than the version the user is actually running. Or did I miss something?
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.
my bad , i haven't thought through this
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.
should i run the bash script ' git describe --tags from the flask ' to get the current version?
now the current app version is fetched instead of latest version
@jberkus i made new approach to fetch the current version of the app use |
fixes #96
now the elekto version is displayed in the visible place