Fix a bug when trying to uncheck boxes of apps (id key does not exists)

This commit is contained in:
Alexandre Aubin 2018-06-13 21:39:42 +00:00
parent c9a9658279
commit e28bc61563

View file

@ -43,9 +43,9 @@
{{/each}}
{{#each apps}}
<div class="list-group-item">
<input type="checkbox" id="{{id}}" name="apps" value="{{id}}" checked class="nice-checkbox">
<label for="{{id}}" class="pull-right"><span class="sr-only">{{t 'check'}}</span></label>
<h2 class="list-group-item-heading">{{name}} <small>{{id}}</small></h2>
<input type="checkbox" id="{{@key}}" name="apps" value="{{@key}}" checked class="nice-checkbox">
<label for="{{@key}}" class="pull-right"><span class="sr-only">{{t 'check'}}</span></label>
<h2 class="list-group-item-heading">{{name}} <small>{{@key}}</small></h2>
</div>
{{/each}}
<div class="list-group-item clearfix">