From 7dc119c3879742b602f6a357156b9e8a8cf0acc7 Mon Sep 17 00:00:00 2001 From: horatio Date: Tue, 16 Apr 2024 12:12:23 -0400 Subject: [PATCH] 1172 hide change over time for detailed race and ethnicity lala --- .../components/data-table-row-change.hbs | 18 ++++++++++++++++-- .../components/data-table-row-previous.hbs | 18 ++++++++++++++++-- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/app/templates/components/data-table-row-change.hbs b/app/templates/components/data-table-row-change.hbs index a16fec9c..bd488952 100644 --- a/app/templates/components/data-table-row-change.hbs +++ b/app/templates/components/data-table-row-change.hbs @@ -1,4 +1,8 @@ -{{#unless (or @rowConfig.divider this.noPriorData)}} +{{#unless (or + @rowConfig.divider + this.noPriorData + (eq @data.category 'detailed_race_and_ethnicity') +)}} {{@rowConfig.title}} @@ -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 --}} + + + {{@rowConfig.title}} + + + + Data for this row are not comparable or are unavailable + + {{else if this.noPriorData}} {{!-- if 2006-2010 sum is null, just return empty cells --}} diff --git a/app/templates/components/data-table-row-previous.hbs b/app/templates/components/data-table-row-previous.hbs index c5879f47..d7801e91 100644 --- a/app/templates/components/data-table-row-previous.hbs +++ b/app/templates/components/data-table-row-previous.hbs @@ -1,4 +1,8 @@ -{{#unless (or this.rowConfig.divider this.noPriorData)}} +{{#unless (or + this.rowConfig.divider + this.noPriorData + (eq @data.category 'detailed_race_and_ethnicity') +)}} {{this.rowConfig.title}} @@ -125,7 +129,17 @@ {{/if}} {{else}} - {{#if this.noPriorData}} + {{#if (eq @data.category 'detailed_race_and_ethnicity')}} + {{!-- disable change over time for subregions in detailed_race_and_ethnicity chart --}} + + + {{@rowConfig.title}} + + + + Data for this row are not comparable or are unavailable + + {{else if this.noPriorData}} {{!-- if 2006-2010 sum is null, just return empty cells --}}