Skip to content

Commit

Permalink
[PLA-1505] fix api token count (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
zlayine authored Dec 12, 2023
1 parent ed7a2b7 commit 70712de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resources/js/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 70712de

Please sign in to comment.