Skip to content

Commit 931ff7b

Browse files
authored
Merge pull request #3060 from nextcloud/fix/transfer-ownership-confirmation-string
fix: transfer ownership confirmation string formatting
2 parents 68b1ea0 + ba4670c commit 931ff7b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/SidebarTabs/TransferOwnership.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export default {
147147
},
148148
149149
confirmationString() {
150-
return `${this.form.ownerId}/${this.form.title}`
150+
return `${this.form.ownerId}/${this.form.title.replace(/\s/g, ' ').trim()}`
151151
},
152152
153153
options() {

src/views/Create.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
:placeholder="t('forms', 'Form title')"
8282
required
8383
autofocus
84+
@keydown.enter.prevent
8485
@input="onTitleChange" />
8586
</h2>
8687
<label class="hidden-visually" for="form-desc">

0 commit comments

Comments
 (0)