mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-17 05:43:01 +00:00
Use new HTTP API parameter in client
This commit is contained in:
parent
24b14a4745
commit
eff8b69d38
2 changed files with 5 additions and 2 deletions
|
@ -1,7 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
## v0.3.1 - 7th February 2019
|
||||
- [API] Added `device-id` parameter to the `list-reading-types` action.
|
||||
- Hidden measurement types in the device graph if a device hasn't reported any readings of that type
|
||||
|
||||
### API Backend
|
||||
- Added `device-id` parameter to the `list-reading-types` action.
|
||||
|
||||
## v0.3.0 - 1st February 2019
|
||||
- Installed a library to fix bugs in the device marker tabbing system
|
||||
|
|
|
@ -153,7 +153,7 @@ class DeviceReadingDisplay {
|
|||
}
|
||||
|
||||
async fetch_reading_types() {
|
||||
this.reading_types = JSON.parse(await GetFromUrl(`${this.config.api_root}?action=list-reading-types`));
|
||||
this.reading_types = JSON.parse(await GetFromUrl(`${this.config.api_root}?action=list-reading-types&device-id=${this.device_id}`));
|
||||
}
|
||||
|
||||
async switch_graph_type_handler(event) {
|
||||
|
|
Loading…
Reference in a new issue