mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-17 21:24:59 +00:00
clicking the Select All box
This commit is contained in:
@@ -11,6 +11,14 @@ export const useEmailSelection = function(){
|
||||
this.emails.add(id);
|
||||
}
|
||||
},
|
||||
clear(){
|
||||
this.emails.clear();
|
||||
},
|
||||
addMultiple(emails) {
|
||||
emails.forEach(email => {
|
||||
this.emails.add(email)
|
||||
})
|
||||
},
|
||||
})
|
||||
|
||||
return { emailSelection }
|
||||
|
||||
Reference in New Issue
Block a user