Merge branch '712' into 'develop'

Move mention button right next to mute button

Closes #712

See merge request pleroma/pleroma-fe!1015
This commit is contained in:
Shpuld Shpludson 2019-12-02 12:08:12 +00:00
commit 0c6737f336
4 changed files with 15 additions and 17 deletions

View file

@ -25,9 +25,6 @@ const AccountActions = {
}, },
reportUser () { reportUser () {
this.$store.dispatch('openUserReportingModal', this.user.id) this.$store.dispatch('openUserReportingModal', this.user.id)
},
mentionUser () {
this.$store.dispatch('openPostStatusModal', { replyTo: true, repliedUser: this.user })
} }
} }
} }

View file

@ -9,17 +9,7 @@
> >
<div slot="popover"> <div slot="popover">
<div class="dropdown-menu"> <div class="dropdown-menu">
<button
class="btn btn-default btn-block dropdown-item"
@click="mentionUser"
>
{{ $t('user_card.mention') }}
</button>
<template v-if="user.following"> <template v-if="user.following">
<div
role="separator"
class="dropdown-divider"
/>
<button <button
v-if="user.showing_reblogs" v-if="user.showing_reblogs"
class="btn btn-default dropdown-item" class="btn btn-default dropdown-item"
@ -34,11 +24,11 @@
> >
{{ $t('user_card.show_repeats') }} {{ $t('user_card.show_repeats') }}
</button> </button>
</template>
<div <div
role="separator" role="separator"
class="dropdown-divider" class="dropdown-divider"
/> />
</template>
<button <button
v-if="user.statusnet_blocking" v-if="user.statusnet_blocking"
class="btn btn-default btn-block dropdown-item" class="btn btn-default btn-block dropdown-item"

View file

@ -149,6 +149,9 @@ export default {
} }
this.$store.dispatch('setMedia', [attachment]) this.$store.dispatch('setMedia', [attachment])
this.$store.dispatch('setCurrent', attachment) this.$store.dispatch('setCurrent', attachment)
},
mentionUser () {
this.$store.dispatch('openPostStatusModal', { replyTo: true, repliedUser: this.user })
} }
} }
} }

View file

@ -175,6 +175,14 @@
{{ $t('user_card.mute') }} {{ $t('user_card.mute') }}
</button> </button>
</div> </div>
<div>
<button
class="btn btn-default btn-block"
@click="mentionUser"
>
{{ $t('user_card.mention') }}
</button>
</div>
<ModerationTools <ModerationTools
v-if="loggedIn.role === &quot;admin&quot;" v-if="loggedIn.role === &quot;admin&quot;"
:user="user" :user="user"