@afeefa/vue-app 0.0.229 → 0.0.230

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 0.0.229
1
+ 0.0.230
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.229",
3
+ "version": "0.0.230",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -210,6 +210,11 @@ export default class ListView extends Mixins(ListViewMixin) {
210
210
  return this.selectedModels.includes(model)
211
211
  }
212
212
 
213
+ deselectAll () {
214
+ this.selectedModels = []
215
+ this.$emit('update:selectedModels', this.selectedModels)
216
+ }
217
+
213
218
  selectModel (model) {
214
219
  if (!this.isSelected(model)) {
215
220
  this.selectedModels.push(model)
@@ -220,8 +225,7 @@ export default class ListView extends Mixins(ListViewMixin) {
220
225
  }
221
226
 
222
227
  _listLoaded () {
223
- this.selectedModels = []
224
- this.$emit('update:selectedModels', this.selectedModels)
228
+ this.deselectAll()
225
229
  }
226
230
 
227
231
  @Watch('isLoading')