fix(dashboard): allow creating folder by pressing Enter (#8597)

* fix(dashboard): allow creating folder by pressing Enter

* fix(dashboard): disable form while creating folder to prevent duplicate submissions
This commit is contained in:
micaiguai
2026-06-10 16:46:11 +08:00
committed by GitHub
parent b321499e00
commit 56d2b3fb55

View File

@@ -6,7 +6,7 @@
{{ labels.title }}
</v-card-title>
<v-card-text>
<v-form ref="form" v-model="formValid">
<v-form ref="form" v-model="formValid" @submit.prevent="submitForm" :disabled="loading">
<v-text-field v-model="formData.name" :label="mergedLabels.nameLabel"
:rules="[(v: any) => !!v || mergedLabels.nameRequired]" variant="outlined"
density="comfortable" autofocus class="mb-3" />