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

Commit

Permalink
Merge pull request #1097 from replicatedhq/support-when-for-config-gr…
Browse files Browse the repository at this point in the history
…oups

Support when for config groups
  • Loading branch information
sgalsaleh authored Aug 3, 2020
2 parents acf37b6 + 54212f1 commit 7d73bcd
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.22",
"version": "1.6.23",
"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 @@ -143,7 +143,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 7d73bcd

Please sign in to comment.