Use new HTTP API parameter in client

This commit is contained in:
Starbeamrainbowlabs 2019-02-07 19:27:21 +00:00
parent 24b14a4745
commit eff8b69d38
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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) {