diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2020-02-27 19:41:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 19:41:08 +0300 |
commit | d17a3c9e73247c33dba457487576a8937841e29f (patch) | |
tree | a3288789dd47bb97b8fa3291eb2f2b007a8e85be | |
parent | aed9f43f2edbfeba69c13517041def94859acaae (diff) | |
parent | 577107c714c71e9da4c93438a7040f40f7a96504 (diff) |
Merge pull request #2278 from nextcloud/design/favorite-toggle
Move favorite toggle to menu, otherwise not distinguishable
-rw-r--r-- | src/components/Envelope.vue | 4 |
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> |