@afeefa/vue-app 0.0.266 → 0.0.268

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.266
1
+ 0.0.268
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.266",
3
+ "version": "0.0.268",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -98,7 +98,16 @@ export class ListViewMixin extends Vue {
98
98
  }
99
99
 
100
100
  @Watch('listAction')
101
- listActionChanged () {
101
+ listActionChanged (newAction, oldAction) {
102
+ // es gibt den fall, dass diese liste in einer detailansicht steckt
103
+ // und dort der owner nach dem speichern aktualisiert wird, dann ändert sich auch
104
+ // die listAction, aber die filter sind alle gleich. dann wollen wir nicht
105
+ // neu laden
106
+ newAction = JSON.stringify(newAction.getApiRequest().serialize())
107
+ oldAction = JSON.stringify(oldAction.getApiRequest().serialize())
108
+ if (newAction === oldAction) {
109
+ return
110
+ }
102
111
  this.init()
103
112
  }
104
113
 
@@ -9,7 +9,7 @@
9
9
  size="1.3rem"
10
10
  class="contextButton mt-n1"
11
11
  title="Bearbeiten"
12
- @click="showForm = true"
12
+ @click="openModal"
13
13
  >
14
14
  $pencilCircleIcon
15
15
  </a-icon>
@@ -19,7 +19,7 @@
19
19
  size="1.3rem"
20
20
  class="contextButton mt-n1"
21
21
  title="Bearbeiten"
22
- @click="showForm = true"
22
+ @click="openModal"
23
23
  >
24
24
  $addIcon
25
25
  </a-icon>
@@ -67,7 +67,7 @@
67
67
  :x-small="buttonSize === 'x-small'"
68
68
  icon="$plusIcon"
69
69
  :text="label"
70
- @click="showForm = true"
70
+ @click="openModal"
71
71
  />
72
72
  </div>
73
73
  </detail-property>
@@ -107,6 +107,7 @@ export default class EditableDetailProperty extends Vue {
107
107
 
108
108
  openModal () {
109
109
  this.showForm = true
110
+ this.$emit('open')
110
111
  }
111
112
 
112
113
  close () {