From 043b16e732f81c8eaf0a17645d9297c92f052509 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 1 Feb 2019 18:57:06 +0000 Subject: [PATCH] Add report bug button --- Changelog.md | 1 + client_src/js/UI.mjs | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/Changelog.md b/Changelog.md index b3333a5..d2f03c7 100644 --- a/Changelog.md +++ b/Changelog.md @@ -3,6 +3,7 @@ ## v0.3.0 - 1st February 2019 - Installed a library to fix bugs in the device marker tabbing system - Add _rudimentary_ mobile device support. Note that this is not a priority until the design of the interface for desktop has been worked out. + - Add "report bug" button ## v0.2.0 - 26th January 2019 The first entry! diff --git a/client_src/js/UI.mjs b/client_src/js/UI.mjs index 2d44918..b722274 100644 --- a/client_src/js/UI.mjs +++ b/client_src/js/UI.mjs @@ -44,6 +44,13 @@ class UI { this.map_manager.heatmap.update_reading_type(new_type); }).bind(this) }, + { + type: "button", + name: "Report bug", + callback: ((_event) => { + window.open("https://github.com/ConnectedHumber/Air-Quality-Web/issues/new", "_blank"); + }) + }, { type: "button", name: `${Config.version}, built ${Config.build_date.toDateString()}`,