@afeefa/vue-app 0.0.196 → 0.0.198

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 0.0.196
1
+ 0.0.198
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.196",
3
+ "version": "0.0.198",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -92,8 +92,16 @@ export default class ListFilterSearchSelect extends Mixins(ListFilterMixin) {
92
92
  [this.filter.name]: this.filter.value
93
93
  })
94
94
  .load()
95
+
95
96
  if (models.length) {
96
- this.inputModel = models[0].getTitle()
97
+ if (this.filter.value) {
98
+ const selectedModel = models.find(m => m.id === this.filter.value)
99
+ if (selectedModel) {
100
+ this.inputModel = selectedModel.getTitle()
101
+ } else {
102
+ this.inputModel = models[0].getTitle()
103
+ }
104
+ }
97
105
  }
98
106
  }
99
107
  }
@@ -10,6 +10,7 @@
10
10
  v-if="icon"
11
11
  :color="icon.color"
12
12
  size="2rem"
13
+ :title="label"
13
14
  @click="derail"
14
15
  >
15
16
  {{ icon.icon }}