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 #1094 from replicatedhq/fix-is-visible-for-config-…
Browse files Browse the repository at this point in the history
…items

Use 'when' in addition to 'hidden' when checking the visiblity of a C…
  • Loading branch information
sgalsaleh authored Dec 11, 2019
2 parents 45a17f8 + e7a64f1 commit 2948a7b
Show file tree
Hide file tree
Showing 2 changed files with 2 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.13",
"version": "1.6.14",
"description": "Shared component that contains the Ship Init app",
"author": "Replicated, Inc.",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion web/init/src/services/ConfigService.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const ConfigService = {
},

isVisible(groups, obj) {
return !obj.hidden && ConfigService.isEnabled(groups, obj);
return !obj.hidden && obj.when !== "false" && ConfigService.isEnabled(groups, obj);
},

isEnabled(groups, obj) {
Expand Down

0 comments on commit 2948a7b

Please sign in to comment.