diff --git a/account.html b/account.html
index d4cc8a0..1fdcd4e 100644
--- a/account.html
+++ b/account.html
@@ -24,7 +24,8 @@
Resource Type |
- Avaliable Amount |
+ Allocated Amount |
+ Free Amount |
Total Amount |
diff --git a/scripts/account.js b/scripts/account.js
index ce88775..402765d 100644
--- a/scripts/account.js
+++ b/scripts/account.js
@@ -4,7 +4,7 @@ window.addEventListener("DOMContentLoaded", init);
async function init () {
let resources = await requestAPI("/user/resources");
- buildResourceTable(resources.resources, "#resource-table");
+ buildResourceTable(resources, "#resource-table");
}
function buildResourceTable (object, tableid) {
@@ -17,10 +17,12 @@ function buildResourceTable (object, tableid) {
let row = tbody.insertRow();
let key = row.insertCell();
key.innerText = `${element}`;
+ let used = row.insertCell();
+ used.innerText = `${object.used[element]}`;
let val = row.insertCell();
- val.innerText = `${object.available[element]}`
- let total = row.insertCell();;
- total.innerText = `${object.maximum[element]}`
+ val.innerText = `${object.available[element]}`;
+ let total = row.insertCell();
+ total.innerText = `${object.maximum[element]}`;
});
}
}
\ No newline at end of file