diff --git a/frontend/src/api/webmail.js b/frontend/src/api/webmail.js
index 067b42a2b..6ee58d7e7 100644
--- a/frontend/src/api/webmail.js
+++ b/frontend/src/api/webmail.js
@@ -65,23 +65,31 @@ export default {
responseType: 'blob',
})
},
- deleteSelection(mailbox, selection) {
+ moveSelection(source, destination, selection) {
const body = {
- mailbox,
+ source,
+ destination,
+ selection,
+ }
+ return repository.post('/webmail/emails/move/', body)
+ },
+ deleteSelection(source, selection) {
+ const body = {
+ source,
selection,
}
return repository.post('/webmail/emails/delete/', body)
},
- markSelectionAsJunk(mailbox, selection) {
+ markSelectionAsJunk(source, selection) {
const body = {
- mailbox,
+ source,
selection,
}
return repository.post('/webmail/emails/mark_as_junk/', body)
},
- markSelectionAsNotJunk(mailbox, selection) {
+ markSelectionAsNotJunk(source, selection) {
const body = {
- mailbox,
+ source,
selection,
}
return repository.post('/webmail/emails/mark_as_not_junk/', body)
diff --git a/frontend/src/components/webmail/EmailList.vue b/frontend/src/components/webmail/EmailList.vue
index 45da064a2..85ce9a249 100644
--- a/frontend/src/components/webmail/EmailList.vue
+++ b/frontend/src/components/webmail/EmailList.vue
@@ -5,6 +5,7 @@
v-model="selectAll"
class="mr-4"
hide-details
+ color="primary"
@update:model-value="toggleAllSelection"
/>
@@ -88,7 +89,7 @@