fix: stop auto-trim for feedback message, user name
it's a good idea perhaps, but annoying
This commit is contained in:
parent
8f1eca6f48
commit
29a0d6ba24
|
@ -452,7 +452,7 @@
|
||||||
|
|
||||||
<b-field label="User Name"
|
<b-field label="User Name"
|
||||||
:type="userName && userName.trim() ? null : 'is-danger'">
|
:type="userName && userName.trim() ? null : 'is-danger'">
|
||||||
<b-input v-model.trim="userName"
|
<b-input v-model="userName"
|
||||||
% if request.user:
|
% if request.user:
|
||||||
disabled
|
disabled
|
||||||
% endif
|
% endif
|
||||||
|
@ -467,7 +467,7 @@
|
||||||
<b-field label="Message"
|
<b-field label="Message"
|
||||||
:type="message && message.trim() ? null : 'is-danger'">
|
:type="message && message.trim() ? null : 'is-danger'">
|
||||||
<b-input type="textarea"
|
<b-input type="textarea"
|
||||||
v-model.trim="message"
|
v-model="message"
|
||||||
ref="textarea" />
|
ref="textarea" />
|
||||||
</b-field>
|
</b-field>
|
||||||
</section>
|
</section>
|
||||||
|
@ -530,7 +530,7 @@
|
||||||
return {
|
return {
|
||||||
referrer: this.referrer,
|
referrer: this.referrer,
|
||||||
user_uuid: this.userUUID,
|
user_uuid: this.userUUID,
|
||||||
user_name: this.userName,
|
user_name: this.userName.trim(),
|
||||||
message: this.message.trim(),
|
message: this.message.trim(),
|
||||||
...this.getExtraParams(),
|
...this.getExtraParams(),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue