File tree Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 30
30
31
31
export default {
32
32
setup ({emails}){
33
- let { emailSelection } = useEmailSelection ();
33
+ let emailSelection = useEmailSelection ();
34
34
35
35
let numberSelected = computed (() => {
36
36
return emailSelection .emails .size ;
Original file line number Diff line number Diff line change 27
27
let response = await axios .get (' http://localhost:3000/emails' );
28
28
let emails = response .data ;
29
29
let selectedScreen = ' archive' ;
30
- let {emailSelection} = useEmailSelection ();
31
30
32
31
return {
33
32
emails,
34
33
selectedScreen,
35
- emailSelection
34
+ emailSelection: useEmailSelection ()
36
35
}
37
36
},
38
37
components: {
Original file line number Diff line number Diff line change 35
35
36
36
export default {
37
37
async setup (){
38
- let openedEmail = null ;
39
- let { emailSelection } = useEmailSelection ();
40
-
41
38
return {
42
39
format,
43
- openedEmail,
44
- emailSelection
40
+ openedEmail: null ,
41
+ emailSelection: useEmailSelection ()
45
42
}
46
43
},
47
44
components: {
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export const useEmailSelection = function(){
35
35
moveToInbox ( ) { forSelected ( e => e . archived = false ) ; clear ( ) ; }
36
36
}
37
37
38
- return { emailSelection }
38
+ return emailSelection
39
39
}
40
40
41
41
export default useEmailSelection ;
You can’t perform that action at this time.
0 commit comments