Skip to content

Commit

Permalink
Fix api tokens endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Oct 15, 2024
1 parent a1c070b commit d6c3fa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/dashboard/ApiTokens/ApiTokenRoot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default {
return;
}
this.tokens = res.data.data;
this.tokens = res.data;
},
remove(item) {
this.$swal({
Expand Down Expand Up @@ -207,7 +207,7 @@ export default {
this.load();
this.newTokenModal = false;
this.$swal('Successfully created API token!', `Make sure to save it somewhere secure, as it will not be showen to you again.<br><br>Code: ${res.data.data}`, 'success');
this.$swal('Successfully created API token!', `Make sure to save it somewhere secure, as it will not be showen to you again.<br><br>Code: ${res.data.token}`, 'success');
}
}
}
Expand Down

0 comments on commit d6c3fa7

Please sign in to comment.