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 #885 from GraysonNull/10189-respect-when
Browse files Browse the repository at this point in the history
Labels, headings and bools respect when conditions
  • Loading branch information
GraysonNull committed Mar 27, 2019
2 parents bca55d2 + f95376f commit 50ba22a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion web/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"react-dom": "^16.5.0"
},
"scripts": {
"start": "PORT=8800 react-scripts-replicated start",
"start": "PORT=8880 react-scripts-replicated start",
"build": "react-scripts-replicated build",
"test": "react-scripts-replicated test --env=jsdom",
"eject": "react-scripts-replicated eject"
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 @@ -60,6 +60,7 @@ export default class ConfigGroup extends React.Component {
title={item.title}
recommended={item.recommended}
required={item.required}
hidden={item.hidden}
name={item.name}
/>
</div>
Expand Down Expand Up @@ -88,7 +89,7 @@ export default class ConfigGroup extends React.Component {
);
case "heading":
return (
<div key={`${i}-${item.name}`} className="u-marginTop--40 u-marginBottom--15">
<div key={`${i}-${item.name}`} className={`u-marginTop--40 u-marginBottom--15 ${item.hidden ? "hidden" : ""}`}>
<h3 className="header-color field-section-header">{item.title}</h3>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion web/init/src/components/config_render/ConfigItemTitle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class ConfigItemTitle extends React.Component {
} = this.props;

return (
<h4 className="sub-header-color field-section-sub-header">{title} {
<h4 className={`sub-header-color field-section-sub-header ${this.props.hidden ? "hidden" : ""}`}>{title} {
required ?
<span className="field-label required">Required</span> :
recommended ?
Expand Down
4 changes: 0 additions & 4 deletions web/init/src/scss/components/shared/StepNumbers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@
.progress-base {
background-color: #dfdfdf;
}

.numbers-wrapper {
margin: 0;
}
}

.step-number {
Expand Down

0 comments on commit 50ba22a

Please sign in to comment.