@afeefa/vue-app 0.0.159 → 0.0.160

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 0.0.159
1
+ 0.0.160
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.159",
3
+ "version": "0.0.160",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -47,6 +47,7 @@
47
47
 
48
48
  <template #row="{ model, on }">
49
49
  <v-icon
50
+ v-if="$has.icon"
50
51
  :color="model.getIcon().color"
51
52
  size="1.5rem"
52
53
  class="mr-2"
@@ -70,9 +71,11 @@ import { FormFieldMixin } from '../FormFieldMixin'
70
71
  import { ListAction } from '@a-vue/api-resources/ApiActions'
71
72
 
72
73
  @Component({
73
- props: ['value', 'q', 'listConfig']
74
+ props: ['value', 'q']
74
75
  })
75
76
  export default class FormFieldSearchSelect extends Mixins(FormFieldMixin) {
77
+ $hasOptions = ['icon']
78
+
76
79
  mounted () {
77
80
  if (this.validator) {
78
81
  this.$refs.input.validate()
@@ -15,7 +15,7 @@ import { modelCountService } from './ModelCountService'
15
15
  import { SaveEvent } from '@a-vue/events'
16
16
 
17
17
  @Component({
18
- props: ['action', 'field']
18
+ props: ['action', 'field', 'count']
19
19
  })
20
20
  export default class ModelCount extends Vue {
21
21
  countRequest = null
@@ -24,8 +24,12 @@ export default class ModelCount extends Vue {
24
24
  created () {
25
25
  this.$events.on(SaveEvent.STOP_SAVING, this.loadCount)
26
26
 
27
- this.countRequest = modelCountService.addAction(this.action)
28
- this.loadCount()
27
+ if (this.count) {
28
+ this.content = this.count
29
+ } else {
30
+ this.countRequest = modelCountService.addAction(this.action)
31
+ this.loadCount()
32
+ }
29
33
  }
30
34
 
31
35
  loadCount () {