@afeefa/vue-app 0.0.191 → 0.0.193

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- 0.0.191
1
+ 0.0.193
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.191",
3
+ "version": "0.0.193",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -22,6 +22,10 @@ export default class FormFieldSelect extends Mixins(FormFieldMixin) {
22
22
  items = null
23
23
 
24
24
  created () {
25
+ this.reloadOptions()
26
+ }
27
+
28
+ reloadOptions () {
25
29
  if (this.fieldHasOptionsRequest()) {
26
30
  this.items = this.getSelectOptions()
27
31
  } else if (this.fieldHasOptions()) {
@@ -33,7 +33,7 @@
33
33
  :title="label"
34
34
  :icon="icon"
35
35
  @save="save"
36
- @close="showForm = null"
36
+ @close="close"
37
37
  >
38
38
  <template #form="{modelToEdit}">
39
39
  <slot
@@ -93,6 +93,15 @@ export default class EditableDetailProperty extends Vue {
93
93
  save (model, ignoreChangesOnClose, closeModal) {
94
94
  this.$emit('save', {model, ignoreChangesOnClose, closeModal})
95
95
  }
96
+
97
+ openModal () {
98
+ this.showForm = true
99
+ }
100
+
101
+ close () {
102
+ this.showForm = false
103
+ this.$emit('close')
104
+ }
96
105
  }
97
106
  </script>
98
107