mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 09:55:44 +03:00
Enable the eligibility toggle conditionally based on acls
This commit is contained in:
@@ -93,7 +93,7 @@
|
||||
{{#toggle
|
||||
data-test-eligibility-toggle
|
||||
isActive=model.isEligible
|
||||
isDisabled=(or setEligibility.isRunning model.isDraining)
|
||||
isDisabled=(or setEligibility.isRunning model.isDraining (cannot "write client"))
|
||||
onToggle=(perform setEligibility (not model.isEligible))}}
|
||||
Eligible
|
||||
{{/toggle}}
|
||||
|
||||
Reference in New Issue
Block a user