@afeefa/vue-app 0.0.228 → 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.228
1
+ 0.0.230
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.228",
3
+ "version": "0.0.230",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -38,5 +38,6 @@ export default class ACheckbox extends Vue {
38
38
  <style lang="scss" scoped>
39
39
  .v-input--checkbox {
40
40
  margin: 0;
41
+ padding: 0;
41
42
  }
42
43
  </style>
@@ -46,8 +46,7 @@ import { mdiTextRecognition, mdiHandBackRight } from '@mdi/js'
46
46
 
47
47
  @Component({
48
48
  props: [{
49
- bulkSelection: false,
50
- columns: false
49
+ bulkSelection: false
51
50
  }]
52
51
  })
53
52
  export default class ListConfig extends Vue {
@@ -61,7 +61,7 @@
61
61
  :value="isSelected(model)"
62
62
  hide-details
63
63
  class="pa-0"
64
- @input="selectClient(model)"
64
+ @input="selectModel(model)"
65
65
  />
66
66
  </div>
67
67
 
@@ -210,12 +210,22 @@ export default class ListView extends Mixins(ListViewMixin) {
210
210
  return this.selectedModels.includes(model)
211
211
  }
212
212
 
213
- selectClient (model) {
213
+ deselectAll () {
214
+ this.selectedModels = []
215
+ this.$emit('update:selectedModels', this.selectedModels)
216
+ }
217
+
218
+ selectModel (model) {
214
219
  if (!this.isSelected(model)) {
215
220
  this.selectedModels.push(model)
216
221
  } else {
217
222
  this.selectedModels = this.selectedModels.filter(m => m !== model)
218
223
  }
224
+ this.$emit('update:selectedModels', this.selectedModels)
225
+ }
226
+
227
+ _listLoaded () {
228
+ this.deselectAll()
219
229
  }
220
230
 
221
231
  @Watch('isLoading')