Skip to content

Commit

Permalink
add rule to button for name check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam948-byte committed Jan 14, 2025
1 parent bbeeff2 commit 3a499c3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,11 @@ const handleRename = () => {
style="display: flex; align-items: center; justify-content: center"
align="center"
>
<v-btn color="secondary" :disabled="newName === null" @click="handleRename">
<v-btn
color="secondary"
:disabled="newName === null || !/^[a-zA-Z0-9]+-\\d+-\\d+-yolov[58][nsmlx]$/.test(newName)"
@click="handleRename"
>
<v-icon left class="open-icon"> mdi-pencil </v-icon>
<span class="open-label">Edit Object Detection Model Name</span>
</v-btn>
Expand Down

0 comments on commit 3a499c3

Please sign in to comment.