From d6c3fa782a469f3c59e5b5d837f6f7e6d1e903a3 Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 15 Oct 2024 06:32:54 +0200 Subject: [PATCH] Fix api tokens endpoint --- src/views/dashboard/ApiTokens/ApiTokenRoot.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/dashboard/ApiTokens/ApiTokenRoot.vue b/src/views/dashboard/ApiTokens/ApiTokenRoot.vue index 9a646c6..a2524f7 100644 --- a/src/views/dashboard/ApiTokens/ApiTokenRoot.vue +++ b/src/views/dashboard/ApiTokens/ApiTokenRoot.vue @@ -146,7 +146,7 @@ export default { return; } - this.tokens = res.data.data; + this.tokens = res.data; }, remove(item) { this.$swal({ @@ -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.

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.

Code: ${res.data.token}`, 'success'); } } }