From 093eab2b671aff2934d2da8a575b695f5973b87b Mon Sep 17 00:00:00 2001 From: TeodoraPavlova <27234545+TeodoraPavlova@users.noreply.github.com> Date: Fri, 19 Jan 2024 12:13:26 +0200 Subject: [PATCH] Refresh entity detail and schema detail on update (#187) * Fix reference value vanishing on entity update * Fix refresh entity list on update closes #178 --- frontend/src/components/EntityList.vue | 3 +++ frontend/src/components/inputs/ReferencedEntitySelect.vue | 4 ++++ 2 files changed, 7 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 { 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 } } };