7863-devToTest_2434 #613
|
@ -85,7 +85,7 @@ const fetchMailAliases = async () => {
|
||||||
paginateRef.value.fetch();
|
paginateRef.value.fetch();
|
||||||
};
|
};
|
||||||
|
|
||||||
const getAccountData = async () => {
|
const getAccountData = async (reload = true) => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
hasAccount.value = await fetchAccountExistence();
|
hasAccount.value = await fetchAccountExistence();
|
||||||
if (!hasAccount.value) {
|
if (!hasAccount.value) {
|
||||||
|
@ -93,7 +93,7 @@ const getAccountData = async () => {
|
||||||
store.data = [];
|
store.data = [];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
await fetchMailAliases();
|
reload && (await fetchMailAliases());
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -102,13 +102,11 @@ const openCreateMailAliasForm = () => createMailAliasDialogRef.value.show();
|
||||||
watch(
|
watch(
|
||||||
() => route.params.id,
|
() => route.params.id,
|
||||||
() => {
|
() => {
|
||||||
store.url = urlPath;
|
|
||||||
store.filter = filter.value;
|
|
||||||
getAccountData();
|
getAccountData();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
onMounted(async () => await getAccountData());
|
onMounted(async () => await getAccountData(false));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
Loading…
Reference in New Issue