From befaa477a39234b9455faebfe54e90569013ebd0 Mon Sep 17 00:00:00 2001 From: eugenijm Date: Mon, 22 Apr 2019 18:25:21 +0300 Subject: [PATCH 1/3] Display additional scope description above the status form for mobile users. --- .../mobile_post_status_modal/mobile_post_status_modal.js | 6 +++++- .../mobile_post_status_modal/mobile_post_status_modal.vue | 4 ++-- src/components/post_status_form/post_status_form.js | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/mobile_post_status_modal/mobile_post_status_modal.js b/src/components/mobile_post_status_modal/mobile_post_status_modal.js index 2f24dd08..eb665b8d 100644 --- a/src/components/mobile_post_status_modal/mobile_post_status_modal.js +++ b/src/components/mobile_post_status_modal/mobile_post_status_modal.js @@ -12,7 +12,8 @@ const MobilePostStatusModal = { scrollingDown: false, inputActive: false, oldScrollPos: 0, - amountScrolled: 0 + amountScrolled: 0, + visibility: this.$store.state.users.currentUser.default_scope } }, created () { @@ -32,6 +33,9 @@ const MobilePostStatusModal = { } }, methods: { + onScopeChange (visibility) { + this.visibility = visibility + }, openPostForm () { this.postFormOpen = true this.hidden = true diff --git a/src/components/mobile_post_status_modal/mobile_post_status_modal.vue b/src/components/mobile_post_status_modal/mobile_post_status_modal.vue index 0a451c28..ca431c5f 100644 --- a/src/components/mobile_post_status_modal/mobile_post_status_modal.vue +++ b/src/components/mobile_post_status_modal/mobile_post_status_modal.vue @@ -6,8 +6,8 @@ @click="closePostForm" >
-
{{$t('post_status.new_status')}}
- +
{{$t('post_status.new_status') + ' (' + $t('post_status.scope.' + visibility) + ')'}}
+