Created
March 28, 2016 08:50
-
-
Save dai-shi/d87ed7301860d461fbfc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment