Skip to content

Commit

Permalink
fix tier display (Tier-1 is most critical)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjacobs committed Nov 6, 2019
1 parent 7073b37 commit a99a353
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export default function ApplicationDetail({applicationId, application, editable,
</td>
</tr>
<tr>
<th>Criticality Level</th>
<th>Criticality Level / Tier</th>
<td>
<span className='applicationDetail-criticality'
data-criticality={application.criticality_level}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const ApplicationDetailPlaceholder = (props) => {
</td>
</tr>
<tr>
<th>Criticality Level</th>
<th>Criticality Level / Tier</th>
<td className='u-placeholder-text'>1</td>
</tr>
</tbody>
Expand Down
10 changes: 8 additions & 2 deletions client/lib/common/asset/less/application/application-detail.less
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@
vertical-align: baseline;
border-radius: 50%;

&[data-criticality="1"] {
&[data-criticality="4"] {
background: @gray-lighter;
color: @white;
height: 100%;
}

&[data-criticality="3"] {
background: @green;
color: @white;
height: 100%;
Expand All @@ -54,7 +60,7 @@
height: 100%;
}

&[data-criticality="3"] {
&[data-criticality="1"] {
background: @red;
color: @white;
height: 100%;
Expand Down

0 comments on commit a99a353

Please sign in to comment.