Bulk Select checkbox

This commit is contained in:
Jeffrey Biles
2020-03-18 00:33:43 -07:00
parent d078933844
commit e448b4b7cc
3 changed files with 31 additions and 4 deletions

View File

@@ -12,6 +12,14 @@ export const useEmailSelection = function(){
this.emails.add(id);
}
},
clear(){
this.emails.clear();
},
addMultiple(emails) {
emails.forEach(email => {
this.emails.add(email)
})
},
forSelected(fn){
this.emails.forEach(email => {
fn(email)