nightscout / cgm-remote-monitor

nightscout web monitor
GNU Affero General Public License v3.0
2.4k stars 71.67k forks source link

Trend Arrow doesn't load for up/down on Clock and Main page #8245

Open danielem1 opened 6 months ago

danielem1 commented 6 months ago

The slide down, down, slide up, and up arrows do not work on the clock and main page.

To Reproduce Requires a blood sugar change with a great enough delta to require up/slideup/down/slidedown arrows.

Clock attempts to load /images/Slide%20down.svg for example, which does not exist. When flat, it loads Flat.svg which does work.

clock html is expected to try to load the images present in the images directory with the correct names.

Nightscout 15.0.2, running on heroku. Appears in all browsers and mobile browsers that I can try: Google Chrome, Firefox, Android chrome, Android Firefox

(Appears to be related to /lib/client/clock-client.js line 175 (inserts trend arrow), it is uses the direction variable and looks for direction.svg but those direction names no longer match up with the svg arrow files in the images directory)