From 4f6be8abd9f989702c749c8ec0607ef656f6ee8e Mon Sep 17 00:00:00 2001 From: Lucas ONeil Date: Tue, 24 Oct 2023 16:14:10 -0700 Subject: [PATCH] Use the correct endpoint/store Signed-off-by: Lucas ONeil --- .../src/components/authentications/DeleteApiKey.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/tenant-ui/frontend/src/components/authentications/DeleteApiKey.vue b/services/tenant-ui/frontend/src/components/authentications/DeleteApiKey.vue index 4342c774c..966b796ae 100644 --- a/services/tenant-ui/frontend/src/components/authentications/DeleteApiKey.vue +++ b/services/tenant-ui/frontend/src/components/authentications/DeleteApiKey.vue @@ -15,7 +15,7 @@ import Button from 'primevue/button'; import { useConfirm } from 'primevue/useconfirm'; import { useToast } from 'vue-toastification'; // State -import { useInnkeeperTenantsStore } from '@/store'; +import { useKeyManagementStore } from '@/store'; import { useI18n } from 'vue-i18n'; const { t } = useI18n(); @@ -23,7 +23,7 @@ const { t } = useI18n(); const confirm = useConfirm(); const toast = useToast(); -const innkeeperTenantsStore = useInnkeeperTenantsStore(); +const keyManagementStore = useKeyManagementStore(); // Props const props = defineProps({ @@ -46,7 +46,7 @@ const deleteRecord = (event: any) => { }); }; const doDelete = () => { - innkeeperTenantsStore + keyManagementStore .deleteApiKey(props.recordId) .then(() => { toast.success(t('apiKey.deleteSuccess'));