Browse Source

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
commit
5b76cb7ddc
  1. 9
      ui-v2/app/templates/dc/acls/tokens/-fieldsets.hbs

9
ui-v2/app/templates/dc/acls/tokens/-fieldsets.hbs

@ -1,12 +1,11 @@
<fieldset>
{{#if create }}
<div class="type-toggle type-negative">
<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>
<div class="type-toggle">
<label>
<input type="checkbox" name="Local" checked={{if (not Local) 'checked' }} onchange={{action 'change'}} />
<span>No</span>
<input type="checkbox" name="Local" checked={{if Local 'checked' }} onchange={{action 'change'}} />
<span>Restrict this token to a local datacenter?</span>
</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>
{{/if}}
<label class="type-text validate-optional">

Loading…
Cancel
Save