aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authordave <starpumadev@gmail.com>2019-03-27 13:50:51 -0400
committerdave <starpumadev@gmail.com>2019-03-27 13:50:51 -0400
commit0e2931e7de48d2e01aa8256f5f3f796c7d474865 (patch)
tree14663481aa5fa97fa4df194c58365615b1ede7fc /src/components
parent467647d5d715730a14d41737e4326696ff971cc2 (diff)
parent85e9e52090aedd0f1d850cef58873da2de3d8347 (diff)
Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma-fe into issue-433-status-reply-form
Diffstat (limited to 'src/components')
-rw-r--r--src/components/registration/registration.js3
-rw-r--r--src/components/registration/registration.vue2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/components/registration/registration.js b/src/components/registration/registration.js
index ab6cd64d..8dc00420 100644
--- a/src/components/registration/registration.js
+++ b/src/components/registration/registration.js
@@ -35,6 +35,9 @@ const registration = {
},
computed: {
token () { return this.$route.params.token },
+ bioPlaceholder () {
+ return this.$t('registration.bio_placeholder').replace(/\s*\n\s*/g, ' \n')
+ },
...mapState({
registrationOpen: (state) => state.instance.registrationOpen,
signedIn: (state) => !!state.users.currentUser,
diff --git a/src/components/registration/registration.vue b/src/components/registration/registration.vue
index e22b308d..110b27bf 100644
--- a/src/components/registration/registration.vue
+++ b/src/components/registration/registration.vue
@@ -45,7 +45,7 @@
<div class='form-group'>
<label class='form--label' for='bio'>{{$t('registration.bio')}} ({{$t('general.optional')}})</label>
- <textarea :disabled="isPending" v-model='user.bio' class='form-control' id='bio' :placeholder="$t('registration.bio_placeholder')"></textarea>
+ <textarea :disabled="isPending" v-model='user.bio' class='form-control' id='bio' :placeholder="bioPlaceholder"></textarea>
</div>
<div class='form-group' :class="{ 'form-group--error': $v.user.password.$error }">