mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Merge branch 'selectAll' into addPersons_nostore
This commit is contained in:
commit
b7fcac8f39
@ -34,7 +34,7 @@
|
|||||||
<div class="count">
|
<div class="count">
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
<a v-if="suggestedCounter > 2" href="#">
|
<a v-if="suggestedCounter > 2" @click="selectAll">
|
||||||
{{ $t('action.check_all')}}
|
{{ $t('action.check_all')}}
|
||||||
</a>
|
</a>
|
||||||
<a v-if="selectedCounter > 0" @click="resetSelection">
|
<a v-if="selectedCounter > 0" @click="resetSelection">
|
||||||
@ -185,6 +185,11 @@ export default {
|
|||||||
},
|
},
|
||||||
resetSelection() {
|
resetSelection() {
|
||||||
this.search.selected = [];
|
this.search.selected = [];
|
||||||
|
},
|
||||||
|
selectAll() {
|
||||||
|
this.search.suggested.forEach(function(item) {
|
||||||
|
this.search.selected.push(item);
|
||||||
|
}, this);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user