Skip to content

Commit

Permalink
[#2011] Only display internal comments on editing
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperBrandt committed Mar 30, 2016
1 parent bace7a2 commit fad1e62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions akvo/rsr/static/scripts-src/my-results.js
Original file line number Diff line number Diff line change
Expand Up @@ -724,10 +724,9 @@ function initReact() {
}

var inputId = "new-comment-" + this.props.update.id;
var addComments = this.props.update.status !== 'A';
var addCommentInput;

if (addComments) {
if (this.props.update.status !== 'A' && this.editing()) {
// Adding comments is only possible when the update has not yet been
// approved (status 'A').
addCommentInput = React.DOM.div(null,
Expand Down
3 changes: 1 addition & 2 deletions akvo/rsr/static/scripts-src/my-results.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -724,10 +724,9 @@ function initReact() {
}

var inputId = "new-comment-" + this.props.update.id;
var addComments = this.props.update.status !== 'A';
var addCommentInput;

if (addComments) {
if (this.props.update.status !== 'A' && this.editing()) {
// Adding comments is only possible when the update has not yet been
// approved (status 'A').
addCommentInput = <div>
Expand Down

0 comments on commit fad1e62

Please sign in to comment.