ui: Improve language surrounding marking a token as local/global (#7830)

This commit moved the checkbox used for marking a token as
local/global to use a more traditional UX, i.e.:

[ ] Question?

Clicking the radiobutton toggles true/false:

true = yes
false = no

instead of:

false=yes
true=no
pull/7857/head
John Cowen 5 years ago committed by John Cowen
parent ad9a24d53f
commit 5b76cb7ddc

@ -1,12 +1,11 @@
<fieldset> <fieldset>
{{#if create }} {{#if create }}
<div class="type-toggle type-negative"> <div class="type-toggle">
<span>Restrict this token to a local datacenter?</span>
<em>Local tokens get set in the Raft store of the local DC and do not ever get transmitted to the primary DC or replicated to any other DC.</em>
<label> <label>
<input type="checkbox" name="Local" checked={{if (not Local) 'checked' }} onchange={{action 'change'}} /> <input type="checkbox" name="Local" checked={{if Local 'checked' }} onchange={{action 'change'}} />
<span>No</span> <span>Restrict this token to a local datacenter?</span>
</label> </label>
<em>Local tokens get set in the Raft store of the local DC and do not ever get transmitted to the primary DC or replicated to any other DC.</em>
</div> </div>
{{/if}} {{/if}}
<label class="type-text validate-optional"> <label class="type-text validate-optional">

Loading…
Cancel
Save