Skip to content

Commit

Permalink
fix: fix invalid name input checks (#1312)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteyou authored Apr 1, 2023
1 parent 44f4079 commit 85ea45f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/components/panels/GcodefilesPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@
:label="$t('Files.Name')"
required
:rules="nameInputRules"
@update:error="isInvalidName = !isInvalidName"
@update:error="(bool) => (isInvalidName = bool)"
@keypress.enter="createDirectoryAction"></v-text-field>
</v-card-text>
<v-card-actions>
Expand Down Expand Up @@ -420,7 +420,7 @@
:label="$t('Files.Name').toString()"
required
:rules="nameInputRules"
@update:error="isInvalidName = !isInvalidName"
@update:error="(bool) => (isInvalidName = bool)"
@keyup.enter="renameFileAction"></v-text-field>
</v-card-text>
<v-card-actions>
Expand Down Expand Up @@ -449,7 +449,7 @@
:label="$t('Files.Name')"
required
:rules="nameInputRules"
@update:error="isInvalidName = !isInvalidName"
@update:error="(bool) => (isInvalidName = bool)"
@keyup.enter="renameDirectoryAction"></v-text-field>
</v-card-text>
<v-card-actions>
Expand Down
8 changes: 4 additions & 4 deletions src/components/panels/Machine/ConfigFilesPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
:label="$t('Machine.ConfigFilesPanel.Name')"
required
:rules="nameInputRules"
@update:error="isInvalidName = !isInvalidName"
@update:error="(bool) => (isInvalidName = bool)"
@keyup.enter="createFileAction"></v-text-field>
</v-card-text>
<v-card-actions>
Expand Down Expand Up @@ -309,7 +309,7 @@
:label="$t('Machine.ConfigFilesPanel.Name')"
required
:rules="nameInputRules"
@update:error="isInvalidName = !isInvalidName"
@update:error="(bool) => (isInvalidName = bool)"
@keyup.enter="renameFileAction"></v-text-field>
</v-card-text>
<v-card-actions>
Expand Down Expand Up @@ -340,7 +340,7 @@
:label="$t('Machine.ConfigFilesPanel.Name')"
required
:rules="nameInputRules"
@update:error="isInvalidName = !isInvalidName"
@update:error="(bool) => (isInvalidName = bool)"
@keyup.enter="createDirectoryAction"></v-text-field>
</v-card-text>
<v-card-actions>
Expand Down Expand Up @@ -371,7 +371,7 @@
:label="$t('Machine.ConfigFilesPanel.Name')"
required
:rules="nameInputRules"
@update:error="isInvalidName = !isInvalidName"
@update:error="(bool) => (isInvalidName = bool)"
@keyup.enter="renameDirectoryAction"></v-text-field>
</v-card-text>
<v-card-actions>
Expand Down
6 changes: 3 additions & 3 deletions src/components/panels/Timelapse/TimelapseFilesPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
:label="$t('Timelapse.Name')"
required
:rules="nameInputRules"
@update:error="isInvalidName = !isInvalidName"
@update:error="(bool) => (isInvalidName = bool)"
@keypress.enter="renameFileAction"></v-text-field>
</v-card-text>
<v-card-actions>
Expand Down Expand Up @@ -276,7 +276,7 @@
:label="$t('Timelapse.Name')"
required
:rules="nameInputRules"
@update:error="isInvalidName = !isInvalidName"
@update:error="(bool) => (isInvalidName = bool)"
@keypress.enter="createDirectoryAction"></v-text-field>
</v-card-text>
<v-card-actions>
Expand Down Expand Up @@ -307,7 +307,7 @@
:label="$t('Timelapse.Name')"
required
:rules="nameInputRules"
@update:error="isInvalidName = !isInvalidName"
@update:error="(bool) => (isInvalidName = bool)"
@keyup.enter="renameDirectoryAction"></v-text-field>
</v-card-text>
<v-card-actions>
Expand Down

0 comments on commit 85ea45f

Please sign in to comment.