cleaned up console logs

This commit is contained in:
joey 2020-03-09 18:37:23 -04:00
parent 4a1f9ada67
commit 703afe75aa

View file

@ -1000,7 +1000,6 @@ Logic.registerPanel(P_CONTAINERS_EDIT, {
updateDeleteButton(selectedContainers) { updateDeleteButton(selectedContainers) {
const deleteButton = document.querySelector("div.panel-footer.panel-footer-secondary"); const deleteButton = document.querySelector("div.panel-footer.panel-footer-secondary");
console.log(deleteButton);
if (selectedContainers.length === 0) { if (selectedContainers.length === 0) {
deleteButton.classList.add("hide"); deleteButton.classList.add("hide");
} else { } else {
@ -1072,7 +1071,6 @@ Logic.registerPanel(P_CONTAINERS_EDIT, {
} else if (e.target.matches(".delete-container-icon") || e.target.parentNode.matches(".delete-container-icon")) { } else if (e.target.matches(".delete-container-icon") || e.target.parentNode.matches(".delete-container-icon")) {
Logic.showPanel(P_CONTAINER_DELETE, identity); Logic.showPanel(P_CONTAINER_DELETE, identity);
} else if (e.target.matches(".select-container") || e.target.parentNode.matches(".select-container")) { } else if (e.target.matches(".select-container") || e.target.parentNode.matches(".select-container")) {
console.log(this.shiftOn);
const currentSelectedIdentity = Logic.currentSelectedIdentities(); const currentSelectedIdentity = Logic.currentSelectedIdentities();
const index = currentSelectedIdentity.indexOf(identity); const index = currentSelectedIdentity.indexOf(identity);
@ -1103,10 +1101,7 @@ Logic.registerPanel(P_CONTAINERS_EDIT, {
} }
this.lastSelected = identity; this.lastSelected = identity;
this.updateDeleteButton(currentSelectedIdentity); this.updateDeleteButton(currentSelectedIdentity);
console.log(Logic.currentSelectedIdentities());
} }
}); });
}); });