From bfe0f1ccec230c992f8a6d96bdbb8b8978bd096d Mon Sep 17 00:00:00 2001 From: Quentin Bellanger Date: Fri, 27 Sep 2024 16:07:38 +0200 Subject: [PATCH 1/3] force emit pages model in settings form --- confiture-web-app/src/components/audit/PagesSample.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/confiture-web-app/src/components/audit/PagesSample.vue b/confiture-web-app/src/components/audit/PagesSample.vue index 13af0fd59..0e5799466 100644 --- a/confiture-web-app/src/components/audit/PagesSample.vue +++ b/confiture-web-app/src/components/audit/PagesSample.vue @@ -10,7 +10,7 @@ const props = defineProps<{ modelValue: Omit[]; }>(); -defineEmits<{ +const emit = defineEmits<{ (e: "update:modelValue", payload: Omit[]): void; }>(); @@ -94,6 +94,8 @@ function updatePageOrder(startIndex: number, endIndex: number) { ]; } + emit("update:modelValue", pages.value); + // Focus `endIndex` select pageOrderSelectRefs.value?.at(endIndex)?.focus(); From 946cfc7617301fe65f05a381e76e6c09f5bfa0f4 Mon Sep 17 00:00:00 2001 From: Quentin Bellanger Date: Wed, 2 Oct 2024 12:02:34 +0200 Subject: [PATCH 2/3] fix types --- confiture-web-app/src/components/audit/PagesSample.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confiture-web-app/src/components/audit/PagesSample.vue b/confiture-web-app/src/components/audit/PagesSample.vue index 0e5799466..f996f0c19 100644 --- a/confiture-web-app/src/components/audit/PagesSample.vue +++ b/confiture-web-app/src/components/audit/PagesSample.vue @@ -11,7 +11,7 @@ const props = defineProps<{ }>(); const emit = defineEmits<{ - (e: "update:modelValue", payload: Omit[]): void; + (e: "update:modelValue", payload: Omit[]): void; }>(); // Allow parent to focus last field From 1345b3d0d77b2ca1be7f53efb3b34050fdab6d25 Mon Sep 17 00:00:00 2001 From: Quentin Bellanger Date: Wed, 9 Oct 2024 11:42:54 +0200 Subject: [PATCH 3/3] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 74660b02d..b4e42bcf9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Tous les changements notables de Ara sont documentés ici avec leur date, leur c ### Corrections 🐛 +- Corrige la mise à jour de l’ordre des pages quand les 2 pages ne sont pas adjacentes ([#809](https://github.com/DISIC/Ara/pull/809)) - Corrige l’application de l'attribut `autocomplete` sur le champ "email" du formulaire de connexion ([#808](https://github.com/DISIC/Ara/pull/808)) ## 05/09/2024