Skip to content

Show last odometer value as placeholder when creating new fuel record #851

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Forceu
Copy link

@Forceu Forceu commented Feb 9, 2025

This PR adds a JS function, which sets the last odometer as a placeholder to the odometer input field when creating a new fuel record.
I find myself always clicking the + button to increase the last odometer by 1, so that I have the last odometer record when entring the data. This might PR be quite helpful for some people

@hargata
Copy link
Owner

hargata commented Mar 18, 2025

so I gave this some thought, would this perhaps be a better solution?

So this will display the current odometer when the user clicks on the "+" button, and it will now also allow for 0 increments to use the current odometer.

displaycurrentodometer

@Forceu
Copy link
Author

Forceu commented Mar 19, 2025

Although this would work as well, in my case it wouldn't really make a difference if I enter a 0 or 1 in the odometer field. Having the last odometer in the regular input UI is to make sure that I wrote it down correctly (or if it was an older car with high mileage, it would be enough to remember the last three digits).

In the end I know that not everyone needs such a feature, I simply implemented it because it saved me some clicks.

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