Skip to content
Snippets Groups Projects
Commit 6c5ee499 authored by Cyrille Bollu's avatar Cyrille Bollu
Browse files

- It was not possible to unselect an envelope from its action menu

- When a selected envelope was deleted, the next envelope in the envelopes' list got erroneously automaticaly selected

Signed-off-by: default avatarCyrille Bollu <cyrpub@bollu.be>
parent 7dd71778
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@
data.flags.junk ? t('mail', 'Mark not spam') : t('mail', 'Mark as spam')
}}
</ActionButton>
<ActionButton icon="icon-checkmark" :close-after-click="true" @click.prevent="onSelect">
<ActionButton icon="icon-checkmark" :close-after-click="true" @click.prevent="toggleSelected">
{{
selected ? t('mail', 'Unselect') : t('mail', 'Select')
}}
......@@ -180,9 +180,6 @@ export default {
},
},
methods: {
onSelect() {
this.$emit('update:selected', true)
},
toggleSelected() {
this.$emit('update:selected', !this.selected)
},
......@@ -199,6 +196,11 @@ export default {
this.$store.dispatch('toggleEnvelopeJunk', this.data)
},
onDelete() {
// Remove from selection first
if (this.selected) {
this.$emit('update:selected', false)
}
// Delete
this.$emit('delete')
this.$store.dispatch('deleteMessage', {
id: this.data.databaseId,
......
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