Skip to content

Commit

Permalink
#14 Add visual hints indicating that a case has been closed as duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Nov 18, 2016
1 parent 1dc88a3 commit 14d5147
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions ui/app/scripts/services/Constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Indeterminate: 'Indeterminate',
FalsePositive: 'False Positive',
TruePositive: 'True Positive',
Duplicated: 'Duplicated',
Other: 'Other'
})
.value('CaseImpactStatus', {
Expand Down
6 changes: 5 additions & 1 deletion ui/app/views/partials/case/case.panelinfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ <h4>
</strong>
</span>
</div>
</div>
</div>
</div>
</div>

<div class="alert alert-warning text-center" ng-show="caze.mergeInto">
<h4 class="mb-0">This case has been closed as <em>Duplicated</em> and merged into <a href ui-sref="app.case.details({caseId: caze.mergeInto})">the following case</a></h4>
</div>
5 changes: 4 additions & 1 deletion ui/app/views/partials/index-closedcases.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
<tr ng-repeat="closedCase in list.values">
<td>
<tlp value="closedCase.tlp"></tlp>
<a ui-sref="app.case.details({caseId: closedCase.id})">#{{closedCase.caseId}} - {{closedCase.title}}</a>
<a ui-sref="app.case.details({caseId: closedCase.id})">#{{closedCase.caseId}} - {{closedCase.title}}</a>
<div class="text-danger" ng-if="closedCase.mergeInto">
<small>Merged into <a href ui-sref="app.case.details({caseId: closedCase.mergedInto})">the following case</a></small>
</div>
</td>
<td>
<span ng-repeat="tag in closedCase.tags">
Expand Down

0 comments on commit 14d5147

Please sign in to comment.