From 03320c375a23d3b23fc8c4c18c245e82614f3aba Mon Sep 17 00:00:00 2001 From: amcmanu3 Date: Mon, 3 Oct 2022 15:38:45 -0400 Subject: [PATCH 1/2] Fix conditional issue with zip imports/uploads --- .../templates/server/bedrock_wizard.html | 4 +- app/frontend/templates/server/wizard.html | 447 +++++++++--------- 2 files changed, 228 insertions(+), 223 deletions(-) diff --git a/app/frontend/templates/server/bedrock_wizard.html b/app/frontend/templates/server/bedrock_wizard.html index 47c26492..2ec6f4e8 100644 --- a/app/frontend/templates/server/bedrock_wizard.html +++ b/app/frontend/templates/server/bedrock_wizard.html @@ -696,7 +696,9 @@ } function getTreeView(path) { - if (document.getElementById("lower_half").visibility == "hidden") { + const styles = window.getComputedStyle(document.getElementById("lower_half")); + //If this value is still hidden we know the user is executing a zip import and not an upload + if (styles.visibility === "hidden") { document.getElementById('zip_submit').disabled = false; } else { document.getElementById('upload_submit').disabled = false; diff --git a/app/frontend/templates/server/wizard.html b/app/frontend/templates/server/wizard.html index a749743f..319dff65 100644 --- a/app/frontend/templates/server/wizard.html +++ b/app/frontend/templates/server/wizard.html @@ -685,6 +685,87 @@ transform: translateY(-50%); } + + + {% end %} @@ -712,94 +793,15 @@ } else { bootbox.alert("You must input a path before selecting this button"); } + - .scroll { - max - height: 12em; - overflow - y: auto; - } +{% end %} - .menu - btn { - font - size: 0.9em; - padding: 2px 10px; - } - - .menu { - padding - top: 10px; - z - index: 200; - margin - top: 4px; - position: absolute; - background - color: #2a2c44; - } - - .menu - option { - padding: 6px 20px 6px; - color: white; - } - - #overlay { - position: absolute; - top: 0px; - left: 0px; - width: 100 %; - height: 100 %; - z - index: 100; - } - - - - {% end %} - - {% block js %} -