mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-04-09 06:25:35 -04:00
fix: Fix create token API page (#7325)
This commit is contained in:
@@ -16,10 +16,13 @@
|
|||||||
</BasePageTitle>
|
</BasePageTitle>
|
||||||
<section class="d-flex justify-center">
|
<section class="d-flex justify-center">
|
||||||
<v-card
|
<v-card
|
||||||
class="mt-4"
|
class="mt-4 pa-4"
|
||||||
width="100%"
|
width="100%"
|
||||||
flat
|
flat
|
||||||
>
|
>
|
||||||
|
<v-card-title class="px-0">
|
||||||
|
{{ $t("settings.token.create-an-api-token") }}
|
||||||
|
</v-card-title>
|
||||||
<v-card-text class="px-0">
|
<v-card-text class="px-0">
|
||||||
<v-form
|
<v-form
|
||||||
ref="domNewTokenForm"
|
ref="domNewTokenForm"
|
||||||
@@ -148,8 +151,7 @@ async function createToken(name: string) {
|
|||||||
|
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
|
|
||||||
if (domNewTokenForm?.value?.validate()) {
|
if (!domNewTokenForm?.value?.validate()) {
|
||||||
console.log("Created");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user