From 9e0fba49eaef3a2943001507458ce75b364d3d26 Mon Sep 17 00:00:00 2001 From: alexm Date: Wed, 7 Aug 2024 10:38:20 +0200 Subject: [PATCH] fix: accountMailAlias --- src/pages/Account/Card/AccountMailAlias.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/pages/Account/Card/AccountMailAlias.vue b/src/pages/Account/Card/AccountMailAlias.vue index 99ce3ab22..594353219 100644 --- a/src/pages/Account/Card/AccountMailAlias.vue +++ b/src/pages/Account/Card/AccountMailAlias.vue @@ -85,7 +85,7 @@ const fetchMailAliases = async () => { paginateRef.value.fetch(); }; -const getAccountData = async () => { +const getAccountData = async (reload = true) => { loading.value = true; hasAccount.value = await fetchAccountExistence(); if (!hasAccount.value) { @@ -93,7 +93,7 @@ const getAccountData = async () => { store.data = []; return; } - await fetchMailAliases(); + reload && (await fetchMailAliases()); loading.value = false; }; @@ -102,13 +102,11 @@ const openCreateMailAliasForm = () => createMailAliasDialogRef.value.show(); watch( () => route.params.id, () => { - store.url = urlPath; - store.filter = filter.value; getAccountData(); } ); -onMounted(async () => await getAccountData()); +onMounted(async () => await getAccountData(false));