mirror of https://github.com/docker/docs.git
Updated all unmount calls and better socket revamp
Signed-off-by: French Ben <me+git@frenchben.com>
This commit is contained in:
parent
58e77236bf
commit
c64b899259
|
|
@ -97,7 +97,7 @@ var ContainerListItem = React.createClass({
|
|||
|
||||
return (
|
||||
<Router.Link to="container" params={{name: container.Name}}>
|
||||
<li onMouseEnter={self.handleItemMouseEnter} onMouseLeave={self.handleItemMouseLeave} onClick={self.handleClick}>
|
||||
<li onMouseEnter={self.handleItemMouseEnter} onMouseLeave={self.handleItemMouseLeave} onClick={self.handleClick} id={this.props.key}>
|
||||
{state}
|
||||
<div className="info">
|
||||
<div className="name">
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ var Containers = React.createClass({
|
|||
containerStore.listen(this.update);
|
||||
},
|
||||
|
||||
componentDidUnmount: function () {
|
||||
componentWillUnmount: function () {
|
||||
containerStore.unlisten(this.update);
|
||||
},
|
||||
|
||||
|
|
@ -109,42 +109,6 @@ var Containers = React.createClass({
|
|||
shell.openExternal('https://github.com/docker/kitematic/issues/new');
|
||||
},
|
||||
|
||||
// handleMouseEnterDockerTerminal: function () {
|
||||
// this.setState({
|
||||
// currentButtonLabel: 'Open terminal to use Docker command line.'
|
||||
// });
|
||||
// },
|
||||
//
|
||||
// handleMouseLeaveDockerTerminal: function () {
|
||||
// this.setState({
|
||||
// currentButtonLabel: ''
|
||||
// });
|
||||
// },
|
||||
//
|
||||
// handleMouseEnterReportIssue: function () {
|
||||
// this.setState({
|
||||
// currentButtonLabel: 'Report an issue or suggest feedback.'
|
||||
// });
|
||||
// },
|
||||
//
|
||||
// handleMouseLeaveReportIssue: function () {
|
||||
// this.setState({
|
||||
// currentButtonLabel: ''
|
||||
// });
|
||||
// },
|
||||
//
|
||||
// handleMouseEnterPreferences: function () {
|
||||
// this.setState({
|
||||
// currentButtonLabel: 'Change app preferences.'
|
||||
// });
|
||||
// },
|
||||
//
|
||||
// handleMouseLeavePreferences: function () {
|
||||
// this.setState({
|
||||
// currentButtonLabel: ''
|
||||
// });
|
||||
// },
|
||||
|
||||
render: function () {
|
||||
var sidebarHeaderClass = 'sidebar-header';
|
||||
if (this.state.sidebarOffset) {
|
||||
|
|
|
|||
|
|
@ -73,7 +73,6 @@ module.exports = React.createClass({
|
|||
nextPage = (page + 1 > this.state.totalPage) ? this.state.totalPage : page + 1;
|
||||
totalPage = this.state.totalPage;
|
||||
}
|
||||
|
||||
this.setState({
|
||||
query: query,
|
||||
loading: true,
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ var Setup = React.createClass({
|
|||
setupStore.listen(this.update);
|
||||
},
|
||||
|
||||
componentDidUnmount: function () {
|
||||
componentWillUnmount: function () {
|
||||
setupStore.unlisten(this.update);
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -109,7 +109,6 @@ export default {
|
|||
},
|
||||
|
||||
async nonNativeSetup () {
|
||||
console.log('Non-native setup');
|
||||
let virtualBoxVersion = null;
|
||||
let machineVersion = null;
|
||||
while (true) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue