mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-11 18:54:31 +00:00
remove old code, not sure how it stayed alive this long
This commit is contained in:
@@ -13,18 +13,12 @@
|
||||
|
||||
<script>
|
||||
import MailTable from '@/components/MailTable.vue';
|
||||
import useEmailSelection from '@/composables/use-email-selection';
|
||||
|
||||
export default {
|
||||
name: 'App',
|
||||
components: {
|
||||
MailTable
|
||||
},
|
||||
setup(){
|
||||
return {
|
||||
emailSelection: useEmailSelection()
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -21,14 +21,7 @@
|
||||
export default {
|
||||
setup(props, {emit}){
|
||||
let email = props.email;
|
||||
// let toggleRead = () => {
|
||||
// email.read = !email.read
|
||||
// axios.put(`http://localhost:3000/emails/${email.id}`, email)
|
||||
// }
|
||||
// let toggleArchive = () => {
|
||||
// email.archived = !email.archived
|
||||
// axios.put(`http://localhost:3000/emails/${email.id}`, email)
|
||||
// }
|
||||
|
||||
let toggleRead = () => { emit('changeEmail', {toggleRead: true, save: true})}
|
||||
let toggleArchive = () => { emit('changeEmail', {toggleArchive: true, save: true, closeModal: true})}
|
||||
let goNewer = () => { emit('changeEmail', {changeIndex: -1})}
|
||||
|
||||
Reference in New Issue
Block a user