From 08ce7e26b73045279261ab87a14cb4f3dab5df1e Mon Sep 17 00:00:00 2001
From: Thomas Citharel <tcit@tcit.fr>
Date: Thu, 25 May 2023 12:08:13 +0200
Subject: [PATCH] feat(front): make admin profile view linkable directly with
 parameters

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
---
 js/src/views/Admin/ProfilesView.vue | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/js/src/views/Admin/ProfilesView.vue b/js/src/views/Admin/ProfilesView.vue
index 67bb16fb6..f5fff8f38 100644
--- a/js/src/views/Admin/ProfilesView.vue
+++ b/js/src/views/Admin/ProfilesView.vue
@@ -115,9 +115,9 @@ import Account from "vue-material-design-icons/Account.vue";
 
 const PROFILES_PER_PAGE = 10;
 
-const preferredUsername = ref("");
-const name = ref("");
-const domain = ref("");
+const preferredUsername = useRouteQuery("preferredUsername", "");
+const name = useRouteQuery("name", "");
+const domain = useRouteQuery("domain", "");
 
 const local = useRouteQuery("local", true, booleanTransformer);
 const suspended = useRouteQuery("suspended", false, booleanTransformer);