Skip to content
Snippets Groups Projects
Commit befaa477 authored by Eugenij's avatar Eugenij
Browse files

Display additional scope description above the status form for mobile users.

parent 4819009d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -6,8 +6,8 @@
@click="closePostForm"
>
<div class="post-form-modal-panel panel" @click.stop="">
<div class="panel-heading">{{$t('post_status.new_status')}}</div>
<PostStatusForm class="panel-body" @posted="closePostForm"/>
<div class="panel-heading">{{$t('post_status.new_status') + ' (' + $t('post_status.scope.' + visibility) + ')'}}</div>
<PostStatusForm class="panel-body" @posted="closePostForm" @onScopeChange="onScopeChange" />
</div>
</div>
<button
......
......@@ -338,6 +338,7 @@ const PostStatusForm = {
},
changeVis (visibility) {
this.newStatus.visibility = visibility
this.$emit('onScopeChange', visibility)
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment