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(ui): missing pre snapshot scripts show more button #5113

Merged
Changes from all commits
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
9 changes: 7 additions & 2 deletions web/src/components/snapshots/SnapshotDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,8 @@ class SnapshotDetails extends Component {
<p className="u-fontSize--larger u-textColor--primary u-fontWeight--bold u-lineHeight--bold u-paddingBottom--10 flex flex1">
Scripts
</p>
{this.preSnapshotScripts()?.length > 3 &&
{this.preSnapshotScripts(snapshotDetail)
?.length > 3 &&
selectedScriptTab ===
"Pre-snapshot scripts" ? (
<div className="flex flex1 justifyContent--flexEnd">
Expand All @@ -935,7 +936,11 @@ class SnapshotDetails extends Component {
}
>
Show all{" "}
{this.preSnapshotScripts()?.length}{" "}
{
this.preSnapshotScripts(
snapshotDetail
)?.length
}{" "}
pre-scripts
</span>
</div>
Expand Down
Loading