mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-22 07:05:20 +00:00
BulkActionBar
This commit is contained in:
26
src/components/BulkActionBar.vue
Normal file
26
src/components/BulkActionBar.vue
Normal file
@@ -0,0 +1,26 @@
|
||||
<template>
|
||||
<div class="bulk-action-bar">
|
||||
<button @click="emailSelection.markRead()">
|
||||
Mark Read
|
||||
</button>
|
||||
<button @click="emailSelection.markUnread()">
|
||||
Mark Unread
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import useEmailSelection from '../composition/useEmailSelection';
|
||||
|
||||
export default {
|
||||
setup(){
|
||||
let {emailSelection} = useEmailSelection();
|
||||
return { emailSelection }
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user