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