Skip to content

Commit

Permalink
Remove some duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Hinrichsen committed Mar 2, 2016
1 parent 8d7d285 commit 914d069
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/js/components/AppConfigEditFormComponent.jsx
Expand Up @@ -156,7 +156,7 @@ var AppConfigEditFormComponent = React.createClass({

var volumesIsOpen = this.fieldsHaveError({volumes: "volumes"});

if (state.isVolumesOpen === true) {
if (state.isVolumesOpen) {
volumesIsOpen = state.isVolumesOpen;
}

Expand Down
3 changes: 2 additions & 1 deletion src/js/components/CollapsiblePanelComponent.jsx
@@ -1,5 +1,6 @@
import classNames from "classnames";
import React from "react";
import Util from "../helpers/Util";

var CollapsiblePanelComponent = React.createClass({
displayName: "CollapsiblePanelComponent",
Expand All @@ -14,7 +15,7 @@ var CollapsiblePanelComponent = React.createClass({
getDefaultProps: function () {
return {
isOpen: false,
togglePanel: function () {}
togglePanel: Util.noop
};
},

Expand Down
3 changes: 1 addition & 2 deletions src/js/components/ContainerSettingsComponent.jsx
Expand Up @@ -275,8 +275,7 @@ var ContainerSettingsComponent = React.createClass({
<h4>Parameters</h4>
<div className="duplicable-list">{this.getParametersRows()}</div>
<div>
You can set your Docker volume
settings <a onClick={this.props.openVolumes}>
You can set your Docker volume <a onClick={this.props.openVolumes}>
below
</a>.
</div>
Expand Down

0 comments on commit 914d069

Please sign in to comment.