diff --git a/src/components/BulkActionBar.vue b/src/components/BulkActionBar.vue index c21153f..646fa75 100644 --- a/src/components/BulkActionBar.vue +++ b/src/components/BulkActionBar.vue @@ -3,15 +3,26 @@ - - + Mark Read - + Mark Unread - + Archive + + Move to Inbox + @@ -42,6 +53,10 @@ emails: { type: Array, default: [] + }, + actions: { + type: Array, + default: ['markRead', 'markUnread'] } } } diff --git a/src/components/MailScreenArchived.vue b/src/components/MailScreenArchived.vue index 6db6be9..d8429ef 100644 --- a/src/components/MailScreenArchived.vue +++ b/src/components/MailScreenArchived.vue @@ -1,7 +1,7 @@ VMail Archives - + diff --git a/src/components/MailScreenInbox.vue b/src/components/MailScreenInbox.vue index 4c3a95e..395dd73 100644 --- a/src/components/MailScreenInbox.vue +++ b/src/components/MailScreenInbox.vue @@ -1,7 +1,7 @@ VMail Inbox - + diff --git a/src/composition/useEmailSelection.js b/src/composition/useEmailSelection.js index 9875b82..f8fba6b 100644 --- a/src/composition/useEmailSelection.js +++ b/src/composition/useEmailSelection.js @@ -28,6 +28,7 @@ export const useEmailSelection = function(){ markRead(){ this.forSelected(e => e.read = true )}, markUnread(){ this.forSelected(e => e.read = false )}, archive(){ this.forSelected(e => e.archived = true); this.clear();}, + moveToInbox(){ this.forSelected(e => e.archived = false); this.clear();} }) return {