Skip to content

Commit 69c5b19

Browse files
committed
fix(Album): Prevent whitespace only album names
Signed-off-by: Louis Chmn <louis@chmn.me>
1 parent 913b52c commit 69c5b19

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Albums/AlbumForm.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="form-inputs">
88
<NcTextField
99
ref="nameInput"
10-
:value.sync="albumName"
10+
v-model.trim="albumName"
1111
type="text"
1212
name="name"
1313
:helper-text="albumNameValidationError"
@@ -80,7 +80,7 @@
8080
<span class="right-buttons">
8181
<NcButton
8282
type="primary"
83-
:disabled="albumName.trim() === '' || loading"
83+
:disabled="!canSubmit"
8484
@click="submit(collaborators)">
8585
<template #icon>
8686
<NcLoadingIcon v-if="loading" :size="20" />

0 commit comments

Comments
 (0)