remove old code, not sure how it stayed alive this long

This commit is contained in:
Jeffrey Biles
2020-09-06 17:29:08 -07:00
parent 366f9e8901
commit 6d6eb2c5be
2 changed files with 1 additions and 14 deletions

View File

@@ -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>

View File

@@ -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})}