Send and receive SMS messages using your Android phone programmatically via a simple HTTP API
fix: fix error when deleting user accounts
Acho Arnold Ewin301625e8afe4
diff --git a/web/app/components/BackButton.vue b/web/app/components/BackButton.vueindex 9dc1b888..94ca0f62 100644--- a/web/app/components/BackButton.vue+++ b/web/app/components/BackButton.vue@@ -37,7 +37,7 @@ function goBack() {:block="block"@click="goBack">- <v-icon :icon="mdiArrowLeft" />+ <v-icon :icon="mdiArrowLeft" start />Go Back</v-btn></template>diff --git a/web/app/pages/settings/index.vue b/web/app/pages/settings/index.vueindex 988f0497..17e35c7c 100644--- a/web/app/pages/settings/index.vue+++ b/web/app/pages/settings/index.vue@@ -780,7 +780,8 @@ async function deleteUserAccount() {await router.push({ name: 'index' })} catch {notificationsStore.addNotification({- message: 'Failed to delete your account',+ message:+ 'We ran into an internal error while deleteing your account please contact us.',type: 'error',})} finally {@@ -965,10 +966,10 @@ onMounted(async () => {</VBtn></template><VCard>- <VCardTitle class="text-headline-medium text-break"+ <VCardTitle class="text-headline-small">Are you sure you want to rotate your API Key?</VCardTitle>- <VCardText>+ <VCardText class="text-medium-emphasis">You will have to logout and login again on the<b>httpSMS</b> Android app with your new API key after yourotate it.@@ -976,6 +977,7 @@ onMounted(async () => {<VCardActions class="pb-4"><VBtncolor="primary"+ variant="flat":loading="rotatingApiKey"@click="rotateApiKey">@@ -983,7 +985,10 @@ onMounted(async () => {Yes Rotate Key</VBtn><VSpacer />- <VBtn variant="text" @click="showRotateApiKey = false"+ <VBtn+ variant="text"+ color="warning"+ @click="showRotateApiKey = false">Close</VBtn></VCardActions>diff --git a/web/app/stores/auth.ts b/web/app/stores/auth.tsindex 7d8e17ae..53c0546d 100644--- a/web/app/stores/auth.ts+++ b/web/app/stores/auth.ts@@ -74,10 +74,10 @@ export const useAuthStore = defineStore('auth', () => {}async function deleteUserAccount(): Promise<string> {- const response = await apiFetch<{ message: string }>('/v1/users/me', {+ await apiFetch<{ message: string }>('/v1/users/me', {method: 'DELETE',})- return response.message+ return 'Your account has been deleted successfully'}async function rotateApiKey(userId: string): Promise<EntitiesUser> {