forked from verdnatura/salix-front
perf: minor changes
This commit is contained in:
parent
f3ec9ea58d
commit
fe9adb7a3c
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue