mirror of https://github.com/docker/docs.git
Merge pull request #398 from kitematic/multiple-downloads
Allow downloading multiple containers
This commit is contained in:
commit
5f1ab4f08e
|
@ -19,15 +19,9 @@ var ContainerList = React.createClass({
|
||||||
<ContainerListItem key={containerId} container={container} start={self._start} />
|
<ContainerListItem key={containerId} container={container} start={self._start} />
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
var newItem;
|
|
||||||
if (!this.props.downloading) {
|
|
||||||
newItem = <ContainerListNewItem key={'newcontainer'} containers={this.props.containers} />;
|
|
||||||
} else {
|
|
||||||
newItem = '';
|
|
||||||
}
|
|
||||||
return (
|
return (
|
||||||
<ul>
|
<ul>
|
||||||
{newItem}
|
<ContainerListNewItem key={'newcontainer'} containers={this.props.containers} />
|
||||||
{containers}
|
{containers}
|
||||||
</ul>
|
</ul>
|
||||||
);
|
);
|
||||||
|
|
|
@ -164,17 +164,6 @@ var Containers = React.createClass({
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
var button;
|
|
||||||
if (this.state.downloading) {
|
|
||||||
button = (
|
|
||||||
<OverlayTrigger placement="bottom" overlay={<Tooltip>Only one Docker image can be downloaded at a time.</Tooltip>}>
|
|
||||||
<a disabled={true} className="btn-new icon icon-add-3"></a>
|
|
||||||
</OverlayTrigger>
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
button = <a className="btn-new icon icon-add-3" onClick={this.handleNewContainer}></a>;
|
|
||||||
}
|
|
||||||
|
|
||||||
var container = this.context.router.getCurrentParams().name ? this.state.containers[this.context.router.getCurrentParams().name] : {};
|
var container = this.context.router.getCurrentParams().name ? this.state.containers[this.context.router.getCurrentParams().name] : {};
|
||||||
return (
|
return (
|
||||||
<div className="containers">
|
<div className="containers">
|
||||||
|
@ -184,7 +173,7 @@ var Containers = React.createClass({
|
||||||
<section className={sidebarHeaderClass}>
|
<section className={sidebarHeaderClass}>
|
||||||
<h4>Containers</h4>
|
<h4>Containers</h4>
|
||||||
<div className="create">
|
<div className="create">
|
||||||
{button}
|
<a className="btn-new icon icon-add-3" onClick={this.handleNewContainer}></a>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section className="sidebar-containers" onScroll={this.handleScroll}>
|
<section className="sidebar-containers" onScroll={this.handleScroll}>
|
||||||
|
|
Loading…
Reference in New Issue