Swap the eligiblity checkbox out for a toggle

This commit is contained in:
Michael Lange 2019-11-19 01:35:05 -08:00
parent 95e6068d5d
commit 76bfed5f25

View file

@ -90,12 +90,12 @@
</h1>
<p>
<label class="is-interactive">
<input
type="checkbox"
checked={{model.isEligible}}
disabled={{setEligibility.isRunning}}
onchange={{perform setEligibility (not model.isEligible)}}
/> Eligible
{{#toggle
isActive=model.isEligible
isDisabled=(or setEligibility.isRunning model.isDraining)
onToggle=(perform setEligibility (not model.isEligible))}}
Eligible
{{/toggle}}
<span class="tooltip" aria-label="Only eligible clients can receive allocations">
{{x-icon "info-circle-outline" class="is-faded"}}
</span>