|
@@ -16,6 +16,11 @@ Task = React.createClass({
|
|
Meteor.call("removeTask", this.props.task._id);
|
|
Meteor.call("removeTask", this.props.task._id);
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ togglePrivate() {
|
|
|
|
+ Meteor._debug('Toggling private on task', this.props.task._id);
|
|
|
|
+ Meteor.call("setPrivate", this.props.task._id, ! this.props.task.private);
|
|
|
|
+ },
|
|
|
|
+
|
|
render() {
|
|
render() {
|
|
// Give tasks a different clasSName when they are checked off,
|
|
// Give tasks a different clasSName when they are checked off,
|
|
// so that we can style them nicely in CSS.
|
|
// so that we can style them nicely in CSS.
|