From c4c9575d9ef18267d77d4934515c63595b2a9961 Mon Sep 17 00:00:00 2001 From: joshuaunity Date: Fri, 1 Nov 2024 10:21:16 +0100 Subject: [PATCH] chore: work in progress Signed-off-by: joshuaunity --- flexmeasures/ui/templates/crud/asset.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/flexmeasures/ui/templates/crud/asset.html b/flexmeasures/ui/templates/crud/asset.html index e9cefb228..6db7ca897 100644 --- a/flexmeasures/ui/templates/crud/asset.html +++ b/flexmeasures/ui/templates/crud/asset.html @@ -612,6 +612,14 @@
Sensors:
renderData(); } + // Rnder Account Details + async function getAccount(accountId){ + const apiUrl = window.location.origin + "/api/v3_0/accounts/" + accountId; + const response = await fetch(apiUrl); + const account = await response.json(); + return account; + } + // Render the available API assets function renderApiSensors(assets, graphIndex) { const apiSensorsList = document.getElementById("apiSensorsList");