Skip to content

Commit

Permalink
fix: add colon to dataset label in trad files
Browse files Browse the repository at this point in the history
  • Loading branch information
nborde-CSM committed Dec 14, 2023
1 parent 67e3b27 commit ca06cc9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
16 changes: 6 additions & 10 deletions src/cards/ScenarioNode/ScenarioNode.js
Expand Up @@ -61,8 +61,6 @@ export const ScenarioNode = ({
setIsExpanded(newIsExpanded);
};

const getDatasetsLabel = () => labels.dataset + ':';

const getTranslatedStatus = () => {
if (!scenario.state) {
return '';
Expand Down Expand Up @@ -262,13 +260,11 @@ export const ScenarioNode = ({
<AccordionDetails className={classes.scenarioDetailsContainer}>
<div className={classes.scenarioDetailsNameLine}>{getScenarioDetailNameLine(true)}</div>
{getDetailedStatus()}
<Typography className={classes.cardLabel}>{labels.runTemplateLabel ?? 'Run type:'}</Typography>
<Typography data-cy="scenario-run-template" className={classes.runTemplateName}>
{scenario.runTemplateName}
</Typography>
<Typography className={classes.cardLabel}>{getDatasetsLabel()}</Typography>
<Typography data-cy="scenario-datasets" className={classes.datasets}>
{DatasetUtils.getDatasetNames(datasets, scenario.datasetList)}
<Typography className={classes.cardLabel}>{labels.dataset}</Typography>
<Typography>
<span data-cy="scenario-datasets" className={classes.datasets}>
{DatasetUtils.getDatasetNames(datasets, scenario.datasetList)}
</span>
</Typography>
</AccordionDetails>
);
Expand Down Expand Up @@ -433,7 +429,7 @@ ScenarioNode.defaultProps = {
cancel: 'Cancel',
confirm: 'Confirm',
},
dataset: 'Datasets',
dataset: 'Datasets:',
validationStatus: {
rejected: 'Rejected',
validated: 'Validated',
Expand Down
Expand Up @@ -315,7 +315,7 @@ ScenarioManagerTreeList.defaultProps = {
cancel: 'Cancel',
confirm: 'Confirm',
},
dataset: 'Dataset',
dataset: 'Dataset:',
searchField: 'Filter',
toolbar: {
expandAll: 'Expand all',
Expand Down

0 comments on commit ca06cc9

Please sign in to comment.