Skip to content

Commit

Permalink
(feat): add comment to js item-to-group connection
Browse files Browse the repository at this point in the history
  • Loading branch information
YvetteNikolov committed Aug 19, 2024
1 parent ce01ba6 commit 11e3f1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/limit-item-connections.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ function toggleMetaboxBorder(metaboxWrapper, connectionExists) {
wrapper.style.border = connectionExists ? '' : '1px solid red';
}

// Enforces that only one group connection can be made. Not sure why this is necessary, but it was in the original code.
function toggleGroupConnectionVisibility(metabox, mainConnectionTableRow) {
const createConnectionsElement = document.querySelector(`${metabox} > div.p2p-create-connections`);
const connectionExists = document.querySelectorAll(mainConnectionTableRow).length === 1;
Expand Down

0 comments on commit 11e3f1f

Please sign in to comment.