Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix[hmi-client]: Show preview in drilldown #3077

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

dvince2
Copy link
Collaborator

@dvince2 dvince2 commented Mar 20, 2024

Description

In a dataset drilldown, we should show the preview image

Resolves #(issue)

In a dataset drilldown, we should show the preview image
@dvince2 dvince2 requested a review from shawnyama March 20, 2024 16:52
@dvince2 dvince2 merged commit 799f95d into main Mar 20, 2024
5 checks passed
@dvince2 dvince2 deleted the show_esgf_preview_in_drilldown branch March 20, 2024 17:02
Comment on lines +55 to +64
if (datasetTemp && datasetTemp.esgfId) {
image.value = await getClimateDatasetPreview(datasetTemp.esgfId);
rawContent.value = null;
} else {
// We are assuming here there is only a single csv file. This may change in the future as the API allows for it.
rawContent.value = await downloadRawFile(
props.node.state.datasetId,
datasetTemp?.fileNames?.[0] ?? ''
);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would have been better done within the tera-dataset-description

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should've noticed - I thought that's where the changes happened

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants