Skip to content

Commit f976bdb

Browse files
DS-6357: Update Science Product level group display names (#2412)
* DS-6357: Update Science Product Level group display names * DS-6357: Update Science Product level group display names --------- Co-authored-by: Andrew Anderson <raanderson9@alaska.edu>
1 parent f6945b5 commit f976bdb

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/app/components/shared/selectors/product-science-selector/product-science-selector.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@for (group of sciProdGroups; track group) {
1313
@if (group.name === 'Level-3' || group.name === 'Level-2') {
1414
<mat-optgroup
15-
[label]="group.name"
15+
label="{{ group.label | translate }}"
1616
[disabled]="group.disabled"
1717
class="sci-prod-optgroup"
1818
>
@@ -30,7 +30,7 @@
3030
@for (group of sciProdGroups; track group) {
3131
@if (group.name === 'Level-1' || group.name === 'Level-0') {
3232
<mat-optgroup
33-
[label]="group.name"
33+
label="{{ group.label | translate }}"
3434
[disabled]="group.disabled"
3535
class="sci-prod-optgroup"
3636
>

src/app/components/shared/selectors/product-science-selector/product-science-selector.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ interface sciProd {
1717
interface sciProdGroup {
1818
disabled?: boolean;
1919
name: string;
20+
label: string;
2021
sciProd: sciProd[];
2122
}
2223

@@ -40,6 +41,7 @@ export class ProductScienceSelectorComponent implements OnInit, OnDestroy {
4041
sciProdGroups: sciProdGroup[] = [
4142
{
4243
name: 'Level-3',
44+
label: 'SCIENCE_PRODUCT_LEVEL_3',
4345
disabled: false,
4446
sciProd: [
4547
{ value: 'SME2', viewValue: 'SME2 (Soil Moisture EASE-Grid 2.0)' },
@@ -48,6 +50,7 @@ export class ProductScienceSelectorComponent implements OnInit, OnDestroy {
4850

4951
{
5052
name: 'Level-2',
53+
label: 'SCIENCE_PRODUCT_LEVEL_2',
5154
disabled: false,
5255
sciProd: [
5356
{ value: 'GSLC', viewValue: 'GSLC (Geocoded Single Look Complex)' },
@@ -59,6 +62,7 @@ export class ProductScienceSelectorComponent implements OnInit, OnDestroy {
5962

6063
{
6164
name: 'Level-1',
65+
label: 'SCIENCE_PRODUCT_LEVEL_1',
6266
disabled: false,
6367
sciProd: [
6468
{
@@ -79,6 +83,7 @@ export class ProductScienceSelectorComponent implements OnInit, OnDestroy {
7983

8084
{
8185
name: 'Level-0',
86+
label: 'SCIENCE_PRODUCT_LEVEL_0',
8287
sciProd: [{ value: 'L0B', viewValue: 'L0B (Radar Raw Signal Data)' }],
8388
},
8489
];

0 commit comments

Comments
 (0)