Created
March 28, 2016 08:48
-
-
Save dai-shi/03404d1b18a5a2108b0c 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 deba74a..bec76ba 100644 | |
--- a/imports/ui/Task.jsx | |
+++ b/imports/ui/Task.jsx | |
@@ -30,6 +30,12 @@ export default class Task extends Component { | |
onClick={this.toggleChecked.bind(this)} | |
/> | |
+ { this.props.showPrivateButton ? ( | |
+ <button className="toggle-private" onClick={this.togglePrivate.bind(this)}> | |
+ { this.props.task.private ? 'Private' : 'Public' } | |
+ </button> | |
+ ) : ''} | |
+ | |
<span className="text"> | |
<strong>{this.props.task.username}</strong>: {this.props.task.text} | |
</span> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment