mirror of
https://github.com/docker/docs.git
synced 2026-04-12 14:25:46 +07:00
Removing logs & creating
This commit is contained in:
@@ -202,13 +202,10 @@ var ContainerStore = assign(Object.create(EventEmitter.prototype), {
|
||||
callback();
|
||||
}
|
||||
var placeholderData = JSON.parse(localStorage.getItem('store.placeholders'));
|
||||
console.log(placeholderData);
|
||||
console.log(_.keys(_containers));
|
||||
if (placeholderData) {
|
||||
_placeholders = _.omit(placeholderData, _.keys(_containers));
|
||||
localStorage.setItem('store.placeholders', JSON.stringify(_placeholders));
|
||||
}
|
||||
console.log(_placeholders);
|
||||
this.emit(this.CLIENT_CONTAINER_EVENT);
|
||||
this._resumePulling();
|
||||
this._startListeningToEvents();
|
||||
@@ -262,8 +259,6 @@ var ContainerStore = assign(Object.create(EventEmitter.prototype), {
|
||||
Downloading: true
|
||||
}
|
||||
};
|
||||
console.log(_placeholders);
|
||||
console.log(JSON.stringify(_placeholders));
|
||||
localStorage.setItem('store.placeholders', JSON.stringify(_placeholders));
|
||||
self.emit(self.CLIENT_CONTAINER_EVENT, containerName, 'create');
|
||||
|
||||
|
||||
@@ -17,14 +17,10 @@ var NewContainer = React.createClass({
|
||||
results: _recommended,
|
||||
loading: false,
|
||||
tags: {},
|
||||
active: null,
|
||||
creating: []
|
||||
active: null
|
||||
};
|
||||
},
|
||||
componentDidMount: function () {
|
||||
this.setState({
|
||||
creating: []
|
||||
});
|
||||
this.refs.searchInput.getDOMNode().focus();
|
||||
if (!_recommended.length) {
|
||||
this.recommended();
|
||||
@@ -137,10 +133,7 @@ var NewContainer = React.createClass({
|
||||
render: function () {
|
||||
var self = this;
|
||||
var title = this.state.query ? 'Results' : 'Recommended';
|
||||
var data = [];
|
||||
if (this.state.results) {
|
||||
data = this.state.results.slice(0, 6);
|
||||
}
|
||||
var data = this.state.results;
|
||||
var results;
|
||||
if (data.length) {
|
||||
var items = data.map(function (r) {
|
||||
@@ -165,12 +158,7 @@ var NewContainer = React.createClass({
|
||||
} else {
|
||||
imgsrc = 'http://kitematic.com/recommended/kitematic_html.png';
|
||||
}
|
||||
var action;
|
||||
if (_.find(self.state.creating, r.name)) {
|
||||
action = <RetinaImage src="loading.png"/>;
|
||||
} else {
|
||||
action = <a className="btn btn-action" onClick={self.handleClick.bind(self, r.name)}>Create</a>;
|
||||
}
|
||||
var action = <a className="btn btn-action" onClick={self.handleClick.bind(self, r.name)}>Create</a>;
|
||||
return (
|
||||
<div key={r.name} className="image-item">
|
||||
<div className="logo" style={logoStyle}>
|
||||
|
||||
Reference in New Issue
Block a user