-
-
+
\ No newline at end of file
diff --git a/packages/frontend-bo/src/pages/comptes/mon-compte.vue b/packages/frontend-bo/src/pages/comptes/mon-compte.vue
new file mode 100644
index 000000000..e9b369be2
--- /dev/null
+++ b/packages/frontend-bo/src/pages/comptes/mon-compte.vue
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/frontend-bo/src/stores/user.js b/packages/frontend-bo/src/stores/user.js
index a2e5dc619..22f917346 100644
--- a/packages/frontend-bo/src/stores/user.js
+++ b/packages/frontend-bo/src/stores/user.js
@@ -26,6 +26,12 @@ export const useUserStore = defineStore("user", {
if (user) {
log.i("refreshProfile - DONE");
this.user = user;
+ this.user.serviceCompetent =
+ this.user.territoireCode === "FRA"
+ ? "NAT"
+ : /^"\d"+$/.test(user.territoireCode)
+ ? "DEP"
+ : "REG";
}
} catch (err) {
log.w("refreshProfile - DONE with error", err);
@@ -116,7 +122,6 @@ export const useUserStore = defineStore("user", {
async getUser(id) {
log.i("getUser - IN", { id });
try {
- // Appel du back pour la liste des utilisateurs
const user = await $fetchBackend("/bo-user/" + id, {
credentials: "include",
method: "GET",