Skip to content

Commit

Permalink
fixup! feat: make multiselect menu more discoverable
Browse files Browse the repository at this point in the history
Signed-off-by: greta <gretadoci@gmail.com>
  • Loading branch information
GretaD committed Dec 10, 2024
1 parent c37d26a commit 56fce0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/EnvelopeList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
type="tertiary"
:title="n('mail', 'Unfavorite {number}', 'Unfavorite {number}', selection.length, { number: selection.length })"
@click.prevent="favoriteAll">
<IconFavorite :size="16" />
<IconUnFavorite :size="16" />
</NcButton>

<NcButton v-if="isAtLeastOneSelectedUnFavorite"
type="tertiary"
:title="n('mail', 'Favorite {number}', 'Favorite {number}', selection.length, { number: selection.length })"
@click.prevent="unFavoriteAll">
<IconUnFavorite :size="16" />
<IconFavorite :size="16" />
</NcButton>

<NcButton type="tertiary"
Expand Down Expand Up @@ -380,7 +380,7 @@ export default {
this.unselectAll()
},
favoriteAll() {
const favFlag = !this.isAtLeastOneSelectedFavorite
const favFlag = !this.isAtLeastOneSelectedUnFavorite
this.selectedEnvelopes.forEach((envelope) => {
this.$store.dispatch('markEnvelopeFavoriteOrUnfavorite', {
envelope,
Expand All @@ -390,7 +390,7 @@ export default {
this.unselectAll()
},
unFavoriteAll() {
const favFlag = !this.isAtLeastOneSelectedUnFavorite
const favFlag = !this.isAtLeastOneSelectedFavorite
this.selectedEnvelopes.forEach((envelope) => {
this.$store.dispatch('markEnvelopeFavoriteOrUnfavorite', {
envelope,
Expand Down

0 comments on commit 56fce0e

Please sign in to comment.