Skip to content

Commit c0a713e

Browse files
authored
Merge branch 'main' into 571-déplacer-nom-structure-dans-la-déclaration
2 parents ef552bf + 80057da commit c0a713e

5 files changed

Lines changed: 32 additions & 11 deletions

File tree

confiture-web-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"slugify": "^1.6.5",
2727
"vue": "^3.2.45",
2828
"vue-matomo": "^4.2.0",
29-
"vue-router": "^4.1.6"
29+
"vue-router": "^4.2.5"
3030
},
3131
"devDependencies": {
3232
"@sentry/vite-plugin": "^0.3.0",

confiture-web-app/src/assets/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ Tous les changements notables de Ara sont documentés ici avec leur date, leur c
88

99
- Déplace le champ du nom de la structure qui audite le site dans la page de déclaration ([#574](https://github.com/DISIC/Ara/pull/574))
1010

11+
## 01/12/2023
12+
13+
### Autres changements ⚙️
14+
15+
- Ajout de plus de contexte le message indiquant qu’aucun audit n’est présent sur le tableau de bord ([#577](https://github.com/DISIC/Ara/pull/577))
16+
1117
## 30/11/2023
1218

1319
### Nouvelles fonctionnalités 🚀

confiture-web-app/src/components/account/dashboard/NoAudit.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,21 @@ defineProps<{ label: string }>();
33
</script>
44

55
<template>
6-
<div class="fr-py-3w fr-px-2w wrapper">
7-
<RouterLink :to="{ name: 'missing-audit' }">{{ label }}</RouterLink>
8-
</div>
6+
<p class="fr-pt-2w fr-pb-3w fr-px-2w wrapper">
7+
<span class="fr-text--md fr-text--bold fr-mb-1v">{{ label }}</span>
8+
9+
<RouterLink :to="{ name: 'missing-audit' }" class="fr-text--sm fr-mb-0">
10+
Vous ne retrouvez pas un audit ?
11+
</RouterLink>
12+
</p>
913
</template>
1014

1115
<style scoped>
1216
.wrapper {
1317
background: var(--background-alt-blue-france);
1418
display: flex;
1519
align-items: center;
20+
flex-direction: column;
1621
justify-content: center;
1722
}
1823
</style>

confiture-web-app/src/composables/useWrappedFetch.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { onMounted, watch } from "vue";
22
import { onBeforeRouteLeave, useRoute, useRouter } from "vue-router";
33
import { TimeoutError } from "ky";
4+
import { isEqual } from "lodash-es";
45

56
import { captureWithPayloads } from "../utils";
67

@@ -51,8 +52,12 @@ export function useWrappedFetch(
5152
if (watchParams) {
5253
const watchStopHandle = watch(
5354
() => route.params,
54-
() => {
55-
func().catch(handleError);
55+
(newParams, oldParams) => {
56+
// Make sure the params actually changed because if only the hash of the route
57+
// changed, the `params` objects will be equal but different references, which will trigger the watcher
58+
if (!isEqual(newParams, oldParams)) {
59+
func().catch(handleError);
60+
}
5661
}
5762
);
5863

confiture-web-app/yarn.lock

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,11 @@
581581
resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.4.5.tgz#d54e844c1adbb1e677c81c665ecef1a2b4bb8380"
582582
integrity sha512-JD5fcdIuFxU4fQyXUu3w2KpAJHzTVdN+p4iOX2lMWSHMOoQdMAcpFLZzm9Z/2nmsoZ1a96QEhZ26e50xLBsgOQ==
583583

584+
"@vue/devtools-api@^6.5.0":
585+
version "6.5.1"
586+
resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.5.1.tgz#7f71f31e40973eeee65b9a64382b13593fdbd697"
587+
integrity sha512-+KpckaAQyfbvshdDW5xQylLni1asvNSGme1JFs8I1+/H5pHEhqUKMEQD/qn3Nx5+/nycBq11qAEi8lk+LXI2dA==
588+
584589
"@vue/reactivity-transform@3.2.45":
585590
version "3.2.45"
586591
resolved "https://registry.yarnpkg.com/@vue/reactivity-transform/-/reactivity-transform-3.2.45.tgz#07ac83b8138550c83dfb50db43cde1e0e5e8124d"
@@ -1788,12 +1793,12 @@ vue-matomo@^4.2.0:
17881793
resolved "https://registry.yarnpkg.com/vue-matomo/-/vue-matomo-4.2.0.tgz#d65e369e4ead1d95ef790bef3627512cac3d25e9"
17891794
integrity sha512-m5hCw7LH3wPDcERaF4sp/ojR9sEx7Rl8TpOyH/4jjQxMF2DuY/q5pO+i9o5Dx+BXLSa9+IQ0qhAbWYRyESQXmA==
17901795

1791-
vue-router@^4.1.6:
1792-
version "4.1.6"
1793-
resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-4.1.6.tgz#b70303737e12b4814578d21d68d21618469375a1"
1794-
integrity sha512-DYWYwsG6xNPmLq/FmZn8Ip+qrhFEzA14EI12MsMgVxvHFDYvlr4NXpVF5hrRH1wVcDP8fGi5F4rxuJSl8/r+EQ==
1796+
vue-router@^4.2.5:
1797+
version "4.2.5"
1798+
resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-4.2.5.tgz#b9e3e08f1bd9ea363fdd173032620bc50cf0e98a"
1799+
integrity sha512-DIUpKcyg4+PTQKfFPX88UWhlagBEBEfJ5A8XDXRJLUnZOvcpMF8o/dnL90vpVkGaPbjvXazV/rC1qBKrZlFugw==
17951800
dependencies:
1796-
"@vue/devtools-api" "^6.4.5"
1801+
"@vue/devtools-api" "^6.5.0"
17971802

17981803
vue-template-compiler@^2.7.14:
17991804
version "2.7.14"

0 commit comments

Comments
 (0)