From 5d9227723ec094b8a0a68d1e9e91358369f1f5dc Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 10 Jan 2025 10:10:16 +0100 Subject: [PATCH] feat: refs #8225 added account and invoiceOut modules --- src/composables/useHasAccount.js | 6 ++++ src/pages/Account/Card/AccountDescriptor.vue | 26 +++++++-------- .../Account/Card/AccountDescriptorMenu.vue | 32 +++++++++---------- src/pages/Account/Card/AccountMailAlias.vue | 13 ++------ .../Account/Card/AccountMailForwarding.vue | 21 +++--------- src/pages/Account/Card/AccountSummary.vue | 5 ++- .../InvoiceOut/Card/InvoiceOutSummary.vue | 4 +++ 7 files changed, 49 insertions(+), 58 deletions(-) create mode 100644 src/composables/useHasAccount.js diff --git a/src/composables/useHasAccount.js b/src/composables/useHasAccount.js new file mode 100644 index 00000000000..1014bedf3b1 --- /dev/null +++ b/src/composables/useHasAccount.js @@ -0,0 +1,6 @@ +import axios from 'axios'; + +export default async (id) => { + const { data } = await axios.get(`Accounts/${id}/exists`); + return data.exists; +}; diff --git a/src/pages/Account/Card/AccountDescriptor.vue b/src/pages/Account/Card/AccountDescriptor.vue index 8af817fcc00..e96b4e0c521 100644 --- a/src/pages/Account/Card/AccountDescriptor.vue +++ b/src/pages/Account/Card/AccountDescriptor.vue @@ -1,13 +1,13 @@