Skip to content

Commit b5f9a9f

Browse files
fix: reduce envelope rename minimum length to 1 character
The rename validation was requiring minimum 3 characters, which was inconsistent with envelope creation that allows 1 character names. Changed to use ENVELOPE_NAME_MIN_LENGTH constant (value: 1) for consistency across the system. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent fd227da commit b5f9a9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/FilesList/FileEntry/FileEntryName.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
v-model="newName"
1616
:label="t('libresign', 'File name')"
1717
:autofocus="true"
18-
:minlength="3"
18+
:minlength="1"
1919
:maxlength="255"
2020
:required="true"
2121
enterkeyhint="done"
@@ -120,7 +120,7 @@ export default {
120120
async onRename() {
121121
const trimmedName = this.newName.trim()
122122
123-
if (!trimmedName || trimmedName.length < 3) {
123+
if (!trimmedName || trimmedName.length < 1) {
124124
this.stopRenaming()
125125
return
126126
}

0 commit comments

Comments
 (0)