Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2020-02-27 19:41:08 +0300
committerGitHub <noreply@github.com>2020-02-27 19:41:08 +0300
commitd17a3c9e73247c33dba457487576a8937841e29f (patch)
treea3288789dd47bb97b8fa3291eb2f2b007a8e85be
parentaed9f43f2edbfeba69c13517041def94859acaae (diff)
parent577107c714c71e9da4c93438a7040f40f7a96504 (diff)
Merge pull request #2278 from nextcloud/design/favorite-toggle
Move favorite toggle to menu, otherwise not distinguishable
-rw-r--r--src/components/Envelope.vue4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/Envelope.vue b/src/components/Envelope.vue
index 7e56704dd..70df30cb1 100644
--- a/src/components/Envelope.vue
+++ b/src/components/Envelope.vue
@@ -6,6 +6,7 @@
:style="{'background-color': accountColor}"
></div>
<div
+ v-if="data.flags.flagged"
class="app-content-list-item-star icon-starred"
:data-starred="data.flags.flagged ? 'true' : 'false'"
@click.prevent="onToggleFlagged"
@@ -28,6 +29,9 @@
<Moment :timestamp="data.dateInt" />
</div>
<Actions class="app-content-list-item-menu" menu-align="right">
+ <ActionButton icon="icon-starred" @click.prevent="onToggleFlagged">{{
+ data.flags.flagged ? t('mail', 'Unfavorite') : t('mail', 'Favorite')
+ }}</ActionButton>
<ActionButton icon="icon-mail" @click.prevent="onToggleSeen">{{
data.flags.unseen ? t('mail', 'Mark read') : t('mail', 'Mark unread')
}}</ActionButton>