diff --git a/imports/ui/Task.jsx b/imports/ui/Task.jsx index bec76ba..db0999e 100644 --- a/imports/ui/Task.jsx +++ b/imports/ui/Task.jsx @@ -12,6 +12,10 @@ export default class Task extends Component { Meteor.call('tasks.remove', this.props.task._id); } + togglePrivate() { + Meteor.call('tasks.setPrivate', this.props.task._id, ! this.props.task.private); + } + render() { // Give tasks a different className when they are checked off, // so that we can style them nicely in CSS