Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Commit

Permalink
Support when for config groups
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Feb 11, 2020
1 parent 2948a7b commit 063562f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/init/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@replicatedhq/ship-init",
"version": "1.6.14",
"version": "1.6.15",
"description": "Shared component that contains the Ship Init app",
"author": "Replicated, Inc.",
"license": "Apache-2.0",
Expand Down
3 changes: 2 additions & 1 deletion web/init/src/components/config_render/ConfigGroup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ export default class ConfigGroup extends React.Component {

render() {
const { item } = this.props;
if (!this.isAtLeastOneItemVisible()) return null;
const hidden = item && item.when === "false";
if (hidden || !this.isAtLeastOneItemVisible()) return null;
return (
<div className="flex-column flex-auto">
{item &&
Expand Down

0 comments on commit 063562f

Please sign in to comment.