Hide non changeable selections
This commit is contained in:
@@ -10,12 +10,11 @@
|
||||
<img :src="$store.state.config.loaderUrl" alt="" v-if="loading">
|
||||
<div class="row" v-if="loaded">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<h2>Selektionsmerkmale</h2>
|
||||
<template v-for="selectionGroup in this.crmData.selectionGroups"
|
||||
v-if="hasVisibleSelections(selectionGroup)">
|
||||
<h3>{{ selectionGroup.name}}</h3>
|
||||
<div class="checkbox" v-for="selection in selectionGroup.selections"
|
||||
v-if="selection.changeable === true || selection.value === true">
|
||||
v-if="selection.changeable === true">
|
||||
<label :class="{ disabled: !selection.changeable}">
|
||||
<input type="checkbox" class="form-control" v-model="selection.value"
|
||||
:disabled="!selection.changeable" @change="saveSelections()"/>
|
||||
@@ -26,9 +25,8 @@
|
||||
</template>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<h2>CRM Aktionen</h2>
|
||||
<div class="checkbox" v-for="action in this.crmData.actions"
|
||||
v-if="action.changeable === true || action.value === true">
|
||||
v-if="action.changeable === true">
|
||||
<label :class="{ disabled: !action.changeable}">
|
||||
<input type="checkbox" class="form-control"
|
||||
v-model="action.value" :disabled="!action.changeable"
|
||||
@@ -88,7 +86,7 @@
|
||||
return false;
|
||||
}
|
||||
for (let selection of group.selections) {
|
||||
if (selection.changeable === true || selection.value === true) {
|
||||
if (selection.changeable === true) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user