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