aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/static/hazardeditor.js
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-04 23:04:00 -0400
committerhistoria <[not public]>2026-07-04 23:04:00 -0400
commit4385244d39b37d003dbb7a66a2ff3b05079b7047 (patch)
tree6498a06879cc4ff06612abed259b1403f071ecb2 /internal/admin/static/hazardeditor.js
parentad22ea3526a146ea8ce305c8375c35836465cc30 (diff)
downloadthehouseoficarus-4385244d39b37d003dbb7a66a2ff3b05079b7047.tar.gz
feat: drag/drop files in gui to change directories
Diffstat (limited to 'internal/admin/static/hazardeditor.js')
-rw-r--r--internal/admin/static/hazardeditor.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/admin/static/hazardeditor.js b/internal/admin/static/hazardeditor.js
index ad317cc..ac35e78 100644
--- a/internal/admin/static/hazardeditor.js
+++ b/internal/admin/static/hazardeditor.js
@@ -89,9 +89,9 @@ function renderHazardEditor(id, data) {
});
html += '</select>';
html += '<button class="btn btn-primary btn-sm" onclick="addSection()">Add</button>';
- html += '</div>';
html += renderMoveBar();
html += '</div>';
+ html += '</div>';
html += '<div class="tab-content" id="tabYaml" style="display:none">';
html += '<pre>' + esc(data._raw || JSON.stringify(data, null, 2)) + '</pre>';
@@ -100,6 +100,7 @@ function renderHazardEditor(id, data) {
html += '<div class="btn-row">';
html += '<button class="btn btn-primary" onclick="saveHazard()">Save</button>';
html += '<button class="btn btn-danger" onclick="deleteHazard()">Delete</button>';
+ html += '<button class="btn btn-sm" style="margin-left:auto" onclick="createNewDir()">New Directory</button>';
html += '</div>';
$('#editorMain').innerHTML = html;