Skip to content

Commit

Permalink
Issue #434. Add needscontact stateClass to issue model.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Taylor committed Aug 27, 2015
1 parent 61ae9ac commit 710438b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webcompat/static/js/lib/models/issue.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
this.set('stateClass', 'needsdiagnosis');
return 'Needs Diagnosis';
}
if (labelsNames.indexOf('needscontact') > -1) {
this.set('stateClass', 'needscontact');
return 'Needs Contact';
}
//New is the default value.
this.set('stateClass', 'new');
return 'New Issue';
Expand Down

0 comments on commit 710438b

Please sign in to comment.