Skip to content
Snippets Groups Projects
Unverified Commit ee2bc048 authored by Cyrille Bollu's avatar Cyrille Bollu Committed by Richard Steinmetz
Browse files

Adds "Reply to All" to MenuEnvelope.

parent 2cf545a3
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,12 @@
menu-align="right"
event=""
@click.native.prevent>
<ActionRouter v-if="withReply"
:icon="hasMultipleRecipients ? 'icon-reply-all' : 'icon-reply'"
:close-after-click="true"
:to="hasMultipleRecipients ? replyAllLink : replyOneLink">
{{ t('mail', 'Reply') }}
</ActionRouter>
<ActionRouter v-if="hasMultipleRecipients"
icon="icon-reply"
:close-after-click="true"
......@@ -134,24 +140,35 @@ export default {
MoveModal,
},
props: {
envelope: { // The envelope on which this menu will act
envelope: {
// The envelope on which this menu will act
type: Object,
required: true,
},
mailbox: { // It is just used to get the accountId when envelope doesn't have it
mailbox: {
// It is just used to get the accountId when envelope doesn't have it
type: Object,
required: false,
default: undefined,
},
isSelected: { // Indicates if the envelope is currently selected
isSelected: {
// Indicates if the envelope is currently selected
type: Boolean,
default: false,
},
withSelect: { // "Select" action should only appear in envelopes from the envelope list
withReply: {
// "Reply" action should only appear in envelopes from the envelope list
// (Because in thread envelopes, this action is already set as primary button of this menu)
type: Boolean,
default: true,
},
withSelect: {
// "Select" action should only appear in envelopes from the envelope list
type: Boolean,
default: true,
},
withShowSource: { // "Show source" action should only appear in thread envelopes
withShowSource: {
// "Show source" action should only appear in thread envelopes
type: Boolean,
default: true,
},
......
......@@ -66,6 +66,7 @@
</router-link>
<MenuEnvelope class="app-content-list-item-menu"
:envelope="envelope"
:with-reply="false"
:with-select="false"
:with-show-source="true" />
</div>
......
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