Don't show if self is already assigned

This commit is contained in:
zandercymatics 2024-06-13 13:39:16 -06:00
parent 191ff88b40
commit ba92df9756
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -169,6 +169,14 @@ function openInNewTab(el, removeAttribute = false){
}
});
// Listen to any change events, and hide the parent container if investigator has a value.
selector.on('change', function() {
// The parent container has display type flex.
assignSelfButton.parentElement.style.display = this.value === currentUserId ? "none" : "flex";
});
})();
/** An IIFE for pages in DjangoAdmin that use a clipboard button
*/