Skip to content

Commit

Permalink
1172 hide change over time for detailed race and ethnicity
Browse files Browse the repository at this point in the history
lala
  • Loading branch information
horatiorosa committed Apr 16, 2024
1 parent 770d0ae commit fb9858c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
18 changes: 16 additions & 2 deletions app/templates/components/data-table-row-change.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{{#unless (or @rowConfig.divider this.noPriorData)}}
{{#unless (or
@rowConfig.divider
this.noPriorData
(eq @data.category 'detailed_race_and_ethnicity')
)}}
<td class='title-column' {{action 'showData'}}>
<span>
{{@rowConfig.title}}
Expand Down Expand Up @@ -194,7 +198,17 @@
{{/with}}
{{/with}}
{{else}}
{{#if this.noPriorData}}
{{#if (eq @data.category 'detailed_race_and_ethnicity')}}
{{!-- disable change over time for subregions in detailed_race_and_ethnicity chart --}}
<td class='title-column' {{action 'showData' }}>
<span>
{{@rowConfig.title}}
</span>
</td>
<td class="cell-border-left no-compare-message">
Data for this row are not comparable or are unavailable
</td>
{{else if this.noPriorData}}
{{!-- if 2006-2010 sum is null, just return empty cells --}}
<td class='title-column' {{action 'showData'}}>
<span>
Expand Down
2 changes: 1 addition & 1 deletion app/templates/components/data-table-row-previous.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{#unless (or this.rowConfig.divider this.noPriorData)}}
{{#unless (or this.rowConfig.divider this.noPriorData (eq @data.category 'detailed_race_and_ethnicity'))}}
<td class='title-column' {{action 'showData'}}>
<span>
{{this.rowConfig.title}}
Expand Down

0 comments on commit fb9858c

Please sign in to comment.