Skip to content

Commit

Permalink
Hide add component button if body is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
givanz committed May 30, 2024
1 parent 16bde56 commit d575326
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/builder/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1284,6 +1284,7 @@ Vvveb.Builder = {
let self = this;
let SelectBox = document.getElementById("select-box");
let SelectActions = document.getElementById("select-actions");
let AddSectionBtn = document.getElementById("add-section-btn");
let elementType = this._getElementType(node);

if (!node) {
Expand All @@ -1301,8 +1302,10 @@ Vvveb.Builder = {

if (elementType[1] == "BODY") {
SelectActions.style.display = "none";
AddSectionBtn.style.display = "none";
} else {
SelectActions.style.display = "";
AddSectionBtn.style.display = "";
}

let target = node;
Expand Down

0 comments on commit d575326

Please sign in to comment.