Merge branch 'selectAll' into addPersons_nostore

This commit is contained in:
2021-05-09 09:16:12 +02:00

View File

@@ -34,7 +34,7 @@
<div class="count">
<span>
<a v-if="suggestedCounter > 2" href="#">
<a v-if="suggestedCounter > 2" @click="selectAll">
{{ $t('action.check_all')}}
</a>
<a v-if="selectedCounter > 0" @click="resetSelection">
@@ -185,6 +185,11 @@ export default {
},
resetSelection() {
this.search.selected = [];
},
selectAll() {
this.search.suggested.forEach(function(item) {
this.search.selected.push(item);
}, this);
}
},
}