diff --git a/js/components/NewSuggestion.js b/js/components/NewSuggestion.js index b4a37f6..1ead116 100644 --- a/js/components/NewSuggestion.js +++ b/js/components/NewSuggestion.js @@ -102,11 +102,17 @@ module.exports = React.createClass({ render: function() { var attendeeList = this.getAttendeeList(); var buttonDisabled = this.state.attendee == null || !this.state.suggestion; + var suggestionLabel = "Add Suggestion To:"; + var byLabel = "Suggested By:" + if (Object.keys(this.props.suggestions).length > 0) { + suggestionLabel = "Veto With:"; + byLabel = "Vetoed By:" + } return ( - Add Suggestion/Veto To: + {suggestionLabel} - Suggested By: + {byLabel} + onClick={this.handleNewUserSubmit}>New User