1
Fork 0

EnableUnit() -> UnitEnabled() (#2242)

This commit is contained in:
Ethan Koenig 2017-08-02 01:46:54 -07:00 committed by Lauris BH
parent 539d9f4c30
commit f29458bd3a
9 changed files with 29 additions and 36 deletions

View file

@ -57,7 +57,7 @@
{{range $t, $unit := $.Units}}
<div class="field">
<div class="ui toggle checkbox">
<input type="checkbox" class="hidden" name="units" value="{{$unit.Type}}"{{if $.Team.EnableUnit $unit.Type}} checked{{end}}>
<input type="checkbox" class="hidden" name="units" value="{{$unit.Type}}"{{if $.Team.UnitEnabled $unit.Type}} checked{{end}}>
<label>{{$.i18n.Tr $unit.NameKey}}</label>
<span class="help">{{$.i18n.Tr $unit.DescKey}}</span>
</div>