aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/static/objecteditor.js
diff options
context:
space:
mode:
Diffstat (limited to 'internal/admin/static/objecteditor.js')
-rw-r--r--internal/admin/static/objecteditor.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/admin/static/objecteditor.js b/internal/admin/static/objecteditor.js
index c51628f..3f2a875 100644
--- a/internal/admin/static/objecteditor.js
+++ b/internal/admin/static/objecteditor.js
@@ -175,9 +175,9 @@ function renderObjectEditor(id, data) {
});
html += '</select>';
html += '<button class="btn btn-primary btn-sm" onclick="addSection()">Add</button>';
+ html += renderMoveBar();
html += '</div>';
- html += renderMoveBar();
html += '</div>';
html += '<div class="tab-content" id="tabYaml" style="display:none">';
@@ -188,6 +188,7 @@ function renderObjectEditor(id, data) {
html += '<button class="btn btn-primary" onclick="saveObject()">Save</button>';
html += '<button class="btn" onclick="duplicateObject()">Duplicate</button>';
html += '<button class="btn btn-danger" onclick="deleteObject()">Delete Object</button>';
+ html += '<button class="btn btn-sm" style="margin-left:auto" onclick="createNewDir()">New Directory</button>';
html += '</div>';
$('#editorMain').innerHTML = html;