From 6a482b0d9754fc85f1f61922e92852fbca52beb9 Mon Sep 17 00:00:00 2001
From: Thomas Citharel <tcit@tcit.fr>
Date: Thu, 8 Feb 2024 11:26:27 +0100
Subject: [PATCH] fix(front): various cleanups

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
---
 src/composition/apollo/members.ts           | 1 -
 src/views/Account/children/EditIdentity.vue | 2 +-
 src/views/Settings/NotificationsView.vue    | 9 ++++-----
 src/views/Settings/PreferencesView.vue      | 1 -
 4 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/src/composition/apollo/members.ts b/src/composition/apollo/members.ts
index 97d3d55dd..904a9f5ec 100644
--- a/src/composition/apollo/members.ts
+++ b/src/composition/apollo/members.ts
@@ -17,7 +17,6 @@ export function useGroupMembers(
   groupName: Ref<string>,
   options: useGroupMembersOptions = {}
 ) {
-  console.debug("useGroupMembers", options);
   const { result, error, loading, onResult, onError, refetch, fetchMore } =
     useQuery<
       {
diff --git a/src/views/Account/children/EditIdentity.vue b/src/views/Account/children/EditIdentity.vue
index c9f7e553f..da5f64042 100644
--- a/src/views/Account/children/EditIdentity.vue
+++ b/src/views/Account/children/EditIdentity.vue
@@ -25,7 +25,7 @@
           aria-required="true"
           required
           v-model="identity.name"
-          @input="(event: any) => updateUsername(event.target.value)"
+          @update:modelValue="(value: string) => updateUsername(value)"
           id="identity-display-name"
           dir="auto"
           expanded
diff --git a/src/views/Settings/NotificationsView.vue b/src/views/Settings/NotificationsView.vue
index 8fd4e5bf2..9835748a6 100644
--- a/src/views/Settings/NotificationsView.vue
+++ b/src/views/Settings/NotificationsView.vue
@@ -349,11 +349,10 @@ const { result: loggedUserResult } = useQuery<{ loggedUser: IUser }>(
   USER_NOTIFICATIONS
 );
 const loggedUser = computed(() => loggedUserResult.value?.loggedUser);
-const feedTokens = computed(
-  () =>
-    loggedUser.value?.feedTokens.filter(
-      (token: IFeedToken) => token.actor === null
-    )
+const feedTokens = computed(() =>
+  loggedUser.value?.feedTokens.filter(
+    (token: IFeedToken) => token.actor === null
+  )
 );
 
 const { result: webPushEnabledResult } = useQuery<{
diff --git a/src/views/Settings/PreferencesView.vue b/src/views/Settings/PreferencesView.vue
index 2970b96e9..3ef0a7beb 100644
--- a/src/views/Settings/PreferencesView.vue
+++ b/src/views/Settings/PreferencesView.vue
@@ -94,7 +94,6 @@
       <o-field grouped>
         <o-field :label="t('City or region')" expanded label-for="setting-city">
           <full-address-auto-complete
-            v-if="loggedUser?.settings"
             :resultType="AddressSearchType.ADMINISTRATIVE"
             v-model="address"
             :default-text="address?.description"