From 6d46845fb8c27f2090a848c0f62612fbc4fec676 Mon Sep 17 00:00:00 2001 From: Teodora Pavlova <27234545+TeodoraPavlova@users.noreply.github.com> Date: Thu, 18 Jan 2024 14:18:58 +0200 Subject: [PATCH 1/2] Fix reference value vanishing on entity update --- frontend/src/components/inputs/ReferencedEntitySelect.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/components/inputs/ReferencedEntitySelect.vue b/frontend/src/components/inputs/ReferencedEntitySelect.vue index 9b10aff..9b35fd1 100644 --- a/frontend/src/components/inputs/ReferencedEntitySelect.vue +++ b/frontend/src/components/inputs/ReferencedEntitySelect.vue @@ -125,6 +125,10 @@ export default { watch: { modelValue() { this.getSelected(); + }, + selected: { + handler: "getSelected", + immediate: true } } }; From 0a4193c80deadd0993495606c6ff0b9901e8f32b Mon Sep 17 00:00:00 2001 From: Teodora Pavlova <27234545+TeodoraPavlova@users.noreply.github.com> Date: Thu, 18 Jan 2024 14:33:48 +0200 Subject: [PATCH 2/2] Fix refresh entity list on update --- frontend/src/components/EntityList.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/components/EntityList.vue b/frontend/src/components/EntityList.vue index 7f34abd..bf2dde7 100644 --- a/frontend/src/components/EntityList.vue +++ b/frontend/src/components/EntityList.vue @@ -75,6 +75,9 @@ export default { default: false } }, + activated() { + this.getEntities({resetPage: false}); + }, computed: { pages: computed(() => { try {