mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-20 06:15:13 +00:00
Store all emails, not just ids, so they can be used elsewhere
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
<template>
|
||||
<p>Number selected: {{emailSelection.ids.size}}</p>
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr v-for="email in emails" :key="email.id" :class="[email.read ? 'read' : '']">
|
||||
<td>
|
||||
<input type="checkbox"
|
||||
:checked="emailSelection.ids.has(email.id)"
|
||||
@click="emailSelection.toggle(email.id)" />
|
||||
:checked="emailSelection.ids.has(email)"
|
||||
@click="emailSelection.toggle(email)" />
|
||||
</td>
|
||||
<td>{{email.from}}</td>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user