mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
Fix speed units on the Points page
This commit is contained in:
parent
5b2834599e
commit
8997d10658
3 changed files with 12 additions and 2 deletions
|
|
@ -1 +1 @@
|
|||
0.24.0
|
||||
0.24.1
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
# 0.24.1 - 2025-02-10
|
||||
# 0.24.1 - 2025-02-11
|
||||
|
||||
## Custom map tiles
|
||||
|
||||
|
|
@ -24,6 +24,10 @@ To set a custom tile URL, go to the user settings and set the `Maps` section to
|
|||
ruby_dawarich_map_tiles_usage 99
|
||||
```
|
||||
|
||||
### Fixed
|
||||
|
||||
- Speed on the Points page is now being displayed in kilometers per hour.
|
||||
|
||||
# 0.24.0 - 2025-02-10
|
||||
|
||||
## Points speed units
|
||||
|
|
|
|||
|
|
@ -120,4 +120,10 @@ module ApplicationHelper
|
|||
|
||||
'text-red-500'
|
||||
end
|
||||
|
||||
def point_speed(speed)
|
||||
return speed if speed.to_i <= 0
|
||||
|
||||
speed * 3.6
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue