diff --git a/resources/js/components/pages/SettingsWalletDaemon.vue b/resources/js/components/pages/SettingsWalletDaemon.vue index a860c7b..d2e6e47 100644 --- a/resources/js/components/pages/SettingsWalletDaemon.vue +++ b/resources/js/components/pages/SettingsWalletDaemon.vue @@ -24,21 +24,13 @@
API Token was successfully created. Token: - {{ - tokens[0].plainTextToken?.substring( - tokens[0].plainTextToken?.indexOf('|') + 1 ?? 0 - ) - }} + {{ creationFlowToken?.substring(creationFlowToken?.indexOf('|') + 1 ?? 0) }}
@@ -111,7 +103,7 @@ To configure a new Daemon wallet, you'll need to create an API token. This token will be used to authenticate your Daemon wallet with your Platform account.

-
+
My API Tokens
appStore.user?.apiTokens ?? []); @@ -270,6 +263,10 @@ const createApiToken = async () => { enableTokenCreate.value = false; tokenName.value = ''; snackbar.info({ title: 'Token generated', text: `Your token ${tokenName.value} has been generated.` }); + if (tokens.value.length === 1) { + creationFlowToken.value = tokens.value[0].plainTextToken; + creationFlow.value = true; + } } catch (e: any) { if (snackbarErrors(e)) return; snackbar.error({ title: 'Token generation failed', text: e.message });