Adjust to proper boolean types

This commit is contained in:
Björn Fromme
2018-10-15 15:44:49 +02:00
parent a440159a1d
commit 0b49c38e81
@@ -10,8 +10,8 @@
<template v-for="selectionGroup in this.crmData.selectionGroups">
<h3>{{ selectionGroup.name}}</h3>
<div class="checkbox" v-for="selection in selectionGroup.selections">
<label :class="{ 'disabled': selection.changeable }">
<input type="checkbox" class="form-control" value="True" :checked="selection.value === 'True'" :disabled="selection.changeable === 'False'"/>
<label :class="{ disabled: !selection.changeable}">
<input type="checkbox" class="form-control" v-model="selection.value" :disabled="!selection.changeable"/>
<span class="cr"><i class="cr-icon glyphicon glyphicon-ok"></i></span>
{{ selection.name }}
</label>
@@ -19,8 +19,8 @@
</template>
<h2>CRM Aktionen</h2>
<div class="checkbox" v-for="action in this.crmData.actions">
<label>
<input type="checkbox" class="form-control" value="True" :checked="action.value === 'True'"/>
<label :class="{ disabled: !action.changeable}">
<input type="checkbox" class="form-control" v-model="action.value" :disabled="!action.changeable"/>
<span class="cr"><i class="cr-icon glyphicon glyphicon-ok"></i></span>
{{ action.name }}
</label>