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

GUI HCS Viewer (#2534) Bugfixes and enhancements #2557

Merged
merged 3 commits into from
Mar 15, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[HCS images] Ability to preview "global" image of the well (#2534) - …
…refactoring
  • Loading branch information
rodichenko committed Mar 15, 2022
commit 780217c4a7f9610678caad38c1f3d4c904aaee08
1 change: 0 additions & 1 deletion client/src/components/search/preview/hcs-preview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class HCSPreview extends React.Component {
}}
detailsTitle={detailsTitle}
detailsButtonTitle={detailsButtonTitle}
wellViewByDefault
>
{children}
</HcsImage>
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/special/hcs-image/hcs-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ class HcsImage extends React.PureComponent {
imageId: undefined,
wellImageId: well.wellImageId,
fields: images,
...(wellViewByDefault && {showEntireWell: true})
...(wellViewByDefault ? {showEntireWell: true} : {})
}, () => this.changeWellImage(firstImage, true));
}
}
Expand Down Expand Up @@ -738,7 +738,7 @@ HcsImage.propTypes = {
HcsImage.defaultProps = {
detailsTitle: 'Details',
detailsButtonTitle: 'Show details',
wellViewByDefault: false
wellViewByDefault: true
};

export default HcsImage;