mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-29 02:10:23 +02:00
Make editibility of switch columns be configurable
This commit is contained in:
parent
b36b1491af
commit
21ba4f3394
2 changed files with 7 additions and 1 deletions
|
@ -110,36 +110,42 @@
|
||||||
"name": "id_can_connect",
|
"name": "id_can_connect",
|
||||||
"label": "Connect",
|
"label": "Connect",
|
||||||
"type": "checkbox",
|
"type": "checkbox",
|
||||||
|
"editable": true,
|
||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "id_can_adjust_locks",
|
"name": "id_can_adjust_locks",
|
||||||
"label": "Lock/Unlock",
|
"label": "Lock/Unlock",
|
||||||
"type": "checkbox",
|
"type": "checkbox",
|
||||||
|
"editable": true,
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "id_can_rez",
|
"name": "id_can_rez",
|
||||||
"label": "Rez",
|
"label": "Rez",
|
||||||
"type": "checkbox",
|
"type": "checkbox",
|
||||||
|
"editable": true,
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "id_can_rez_tmp",
|
"name": "id_can_rez_tmp",
|
||||||
"label": "Rez Temp",
|
"label": "Rez Temp",
|
||||||
"type": "checkbox",
|
"type": "checkbox",
|
||||||
|
"editable": true,
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "id_can_write_to_asset_server",
|
"name": "id_can_write_to_asset_server",
|
||||||
"label": "Write Assets",
|
"label": "Write Assets",
|
||||||
"type": "checkbox",
|
"type": "checkbox",
|
||||||
|
"editable": true,
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "id_can_connect_past_max_capacity",
|
"name": "id_can_connect_past_max_capacity",
|
||||||
"label": "Ignore Max Capacity",
|
"label": "Ignore Max Capacity",
|
||||||
"type": "checkbox",
|
"type": "checkbox",
|
||||||
|
"editable": true,
|
||||||
"default": false
|
"default": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -972,7 +972,7 @@ function makeTable(setting, keypath, setting_value, isLocked) {
|
||||||
colName = keypath + "." + rowIndexOrName + "." + col.name;
|
colName = keypath + "." + rowIndexOrName + "." + col.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isArray && col.type === "checkbox") {
|
if (isArray && col.type === "checkbox" && col.editable) {
|
||||||
|
|
||||||
html += "<td class='" + Settings.DATA_COL_CLASS + "'name='" + col.name + "'>"
|
html += "<td class='" + Settings.DATA_COL_CLASS + "'name='" + col.name + "'>"
|
||||||
html += "<input type='checkbox' "
|
html += "<input type='checkbox' "
|
||||||
|
|
Loading…
Reference in a new issue