mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-06 01:35:22 +02:00
Don't show if self is already assigned
This commit is contained in:
parent
191ff88b40
commit
ba92df9756
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue