fix(front): fix behavior of local toggle for profiles & groups view depending on domain value

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2023-09-01 12:17:27 +02:00
parent 5999252e02
commit 84f62cd043
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
2 changed files with 5 additions and 5 deletions

View File

@ -129,11 +129,11 @@ const PROFILES_PER_PAGE = 10;
const { restrictions } = useRestrictions(); const { restrictions } = useRestrictions();
const preferredUsername = ref(""); const preferredUsername = useRouteQuery("preferredUsername", "");
const name = ref(""); const name = useRouteQuery("name", "");
const domain = ref(""); const domain = useRouteQuery("domain", "");
const local = useRouteQuery("local", true, booleanTransformer); const local = useRouteQuery("local", domain.value === "", booleanTransformer);
const suspended = useRouteQuery("suspended", false, booleanTransformer); const suspended = useRouteQuery("suspended", false, booleanTransformer);
const page = useRouteQuery("page", 1, integerTransformer); const page = useRouteQuery("page", 1, integerTransformer);

View File

@ -119,7 +119,7 @@ const preferredUsername = useRouteQuery("preferredUsername", "");
const name = useRouteQuery("name", ""); const name = useRouteQuery("name", "");
const domain = useRouteQuery("domain", ""); const domain = useRouteQuery("domain", "");
const local = useRouteQuery("local", true, booleanTransformer); const local = useRouteQuery("local", domain.value === "", booleanTransformer);
const suspended = useRouteQuery("suspended", false, booleanTransformer); const suspended = useRouteQuery("suspended", false, booleanTransformer);
const page = useRouteQuery("page", 1, integerTransformer); const page = useRouteQuery("page", 1, integerTransformer);