aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js')
-rw-r--r--src/js/arching-kaos-web-ui-settings.js16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/js/arching-kaos-web-ui-settings.js b/src/js/arching-kaos-web-ui-settings.js
index 1e75def..18dfafa 100644
--- a/src/js/arching-kaos-web-ui-settings.js
+++ b/src/js/arching-kaos-web-ui-settings.js
@@ -79,7 +79,21 @@ function settingPlaceToDOM(key, value){
var paragraph = document.createElement("p");
container.appendChild(paragraph);
if ( Array.isArray(value) ){
- paragraph.innerText = "You will need to map this!";
+ var ul = document.createElement("ul");
+ value.map((v)=>{
+ if (v.constructor.name === "Object"){
+ Object.keys(v).forEach((value)=>{
+ var li = document.createElement("li");
+ li.innerText = value + ': ' + v[value];
+ ul.appendChild(li);
+ });
+ } else {
+ var li = document.createElement("li");
+ li.innerText = v;
+ ul.appendChild(li);
+ }
+ });
+ paragraph.appendChild(ul);
} else {
paragraph.innerText = value;
}