Skip to content
Snippets Groups Projects
Unverified Commit 37793f71 authored by Richard Steinmetz's avatar Richard Steinmetz Committed by GitHub
Browse files

Merge pull request #4730 from nextcloud/backport/4712/stable1.9

[stable1.9] Adds "Reply to All" to MenuEnvelope.
parents 2cf545a3 ee2bc048
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,12 @@ ...@@ -5,6 +5,12 @@
menu-align="right" menu-align="right"
event="" event=""
@click.native.prevent> @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" <ActionRouter v-if="hasMultipleRecipients"
icon="icon-reply" icon="icon-reply"
:close-after-click="true" :close-after-click="true"
...@@ -134,24 +140,35 @@ export default { ...@@ -134,24 +140,35 @@ export default {
MoveModal, MoveModal,
}, },
props: { props: {
envelope: { // The envelope on which this menu will act envelope: {
// The envelope on which this menu will act
type: Object, type: Object,
required: true, 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, type: Object,
required: false, required: false,
default: undefined, default: undefined,
}, },
isSelected: { // Indicates if the envelope is currently selected isSelected: {
// Indicates if the envelope is currently selected
type: Boolean, type: Boolean,
default: false, 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, type: Boolean,
default: true, default: true,
}, },
withShowSource: { // "Show source" action should only appear in thread envelopes withShowSource: {
// "Show source" action should only appear in thread envelopes
type: Boolean, type: Boolean,
default: true, default: true,
}, },
......
...@@ -66,6 +66,7 @@ ...@@ -66,6 +66,7 @@
</router-link> </router-link>
<MenuEnvelope class="app-content-list-item-menu" <MenuEnvelope class="app-content-list-item-menu"
:envelope="envelope" :envelope="envelope"
:with-reply="false"
:with-select="false" :with-select="false"
:with-show-source="true" /> :with-show-source="true" />
</div> </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