From e2662d2efbe9307365bb90b8325684e258bdcb53 Mon Sep 17 00:00:00 2001 From: zlayine Date: Tue, 12 Dec 2023 09:28:26 +0300 Subject: [PATCH] fix api token count --- resources/js/store/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/js/store/index.ts b/resources/js/store/index.ts index 8f9ad0b..fb3c93f 100644 --- a/resources/js/store/index.ts +++ b/resources/js/store/index.ts @@ -202,6 +202,7 @@ export const useAppStore = defineStore('app', { async createApiToken(name: string) { const res = await AuthApi.createApiToken(name); this.user.apiTokens.push(res.data.CreateApiToken); + this.tokensCount = this.user.apiTokens.length; }, async revokeToken(name: string) { await AuthApi.revokeApiTokens([name]);