0
0
Fork 0

perf: minor changes

This commit is contained in:
Javier Segarra 2024-06-06 08:09:05 +02:00
parent f3ec9ea58d
commit fe9adb7a3c
1 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ const navigate = (id) => router.push({ name: 'AccountSummary', params: { id } })
const killSession = async (id) => {
try {
await axios.delete(`AccessTokens/${id}`);
await axios.delete(`${urlPath}/${id}`);
paginateRef.value.fetch();
notify(t('Session killed'), 'positive');
} catch (error) {
@ -50,7 +50,7 @@ const killSession = async (id) => {
<QPage class="column items-center q-pa-md">
<div class="vn-card-list">
<VnPaginate
data-key="AccessTokens"
:data-key="urlPath"
ref="paginateRef"
:filter="filter"
:url="urlPath"
@ -81,6 +81,7 @@ const killSession = async (id) => {
</template>
<template #actions>
<QBtn
class="q-mt-xs"
:label="t('connections.killSession')"
@click.stop="
openConfirmationModal(
@ -90,7 +91,6 @@ const killSession = async (id) => {
)
"
outline
style="margin-top: 15px"
/>
</template>
</CardList>