Skip to content

Commit

Permalink
Step 14.6: Add invite method to PartyUninvited
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Kisiela authored and DAB0mB committed Dec 14, 2016
1 parent 1d89a89 commit cd51abd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions imports/ui/components/partyUninvited/partyUninvited.js
Expand Up @@ -19,6 +19,18 @@ class PartyUninvited {
}
});
}

invite(user) {
Meteor.call('invite', this.party._id, user._id,
(error) => {
if (error) {
console.log('Oops, unable to invite!');
} else {
console.log('Invited!');
}
}
);
}
}

const name = 'partyUninvited';
Expand Down

0 comments on commit cd51abd

Please sign in to comment.