mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-17 05:04:51 +00:00
Archive filtering and bulk action button
This commit is contained in:
@@ -9,6 +9,9 @@
|
||||
<button @click="emailSelection.markUnread()" :disabled="Array.from(emailSelection.emails).every(e => !e.read)">
|
||||
Mark Unread
|
||||
</button>
|
||||
<button @click="emailSelection.archive()" :disabled="numberSelected == 0">
|
||||
Archive
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
<BulkActionBar :emails="emails" />
|
||||
|
||||
<MailTable :emails="emails" />
|
||||
<MailTable :emails="emails.filter(e => !e.archived)" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user