mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-22 06:23:01 +00:00
Revert "UI: fix smartsettings and add diclaimer again"
This reverts commit 42e683929b
.
This commit is contained in:
parent
ea14f29a96
commit
8f6057913b
1 changed files with 2 additions and 9 deletions
|
@ -53,7 +53,7 @@ class UI {
|
||||||
await GetFromUrl(`${this.config.api_root}?action=list-reading-types`)
|
await GetFromUrl(`${this.config.api_root}?action=list-reading-types`)
|
||||||
);
|
);
|
||||||
|
|
||||||
this.ui_panel.config = [
|
this.ui_panel.loadConfig([
|
||||||
{
|
{
|
||||||
type: "select",
|
type: "select",
|
||||||
name: "Reading Type",
|
name: "Reading Type",
|
||||||
|
@ -67,13 +67,6 @@ class UI {
|
||||||
document.querySelector("main").classList.remove("working-visual");
|
document.querySelector("main").classList.remove("working-visual");
|
||||||
}).bind(this)
|
}).bind(this)
|
||||||
},
|
},
|
||||||
{
|
|
||||||
type: "button",
|
|
||||||
name: "View disclaimer",
|
|
||||||
callback: ((_event) => {
|
|
||||||
window.open("https://github.com/ConnectedHumber/Air-Quality-Web/tree/dev#disclaimer", "_blank")
|
|
||||||
})
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
name: "Report bug",
|
name: "Report bug",
|
||||||
|
@ -88,7 +81,7 @@ class UI {
|
||||||
show_changelog(false);
|
show_changelog(false);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
];
|
]);
|
||||||
this.ui_panel.setIndex("Reading Type", this.reading_types.findIndex((type) => type.short_descr == "PM25"));
|
this.ui_panel.setIndex("Reading Type", this.reading_types.findIndex((type) => type.short_descr == "PM25"));
|
||||||
|
|
||||||
if(this.tour_enabled) await this.tour.run_once();
|
if(this.tour_enabled) await this.tour.run_once();
|
||||||
|
|
Loading…
Reference in a new issue