Bytom Desktop Electron App
Revision | 3391e3becfbf55d933b3d5c8ab052f42246a0861 (tree) |
---|---|
Time | 2019-07-20 11:44:09 |
Author | Zhiting Lin <zlin035@uott...> |
Commiter | Zhiting Lin |
fixed the toggle adv error.
@@ -94,7 +94,7 @@ class Container extends React.Component { | ||
94 | 94 | }) |
95 | 95 | }) |
96 | 96 | }) |
97 | - | |
97 | + | |
98 | 98 | setInterval(() => this.props.fetchInfo(), CORE_POLLING_TIME) |
99 | 99 | } |
100 | 100 | if(arg === 'init'){ |
@@ -25,13 +25,6 @@ class Navigation extends React.Component { | ||
25 | 25 | arg === 'advance'? this.props.showNavAdvanced() : this.props.hideNavAdvanced() |
26 | 26 | }) |
27 | 27 | } |
28 | - } | |
29 | - | |
30 | - openTutorial(event) { | |
31 | - event.preventDefault() | |
32 | - this.props.openTutorial() | |
33 | - } | |
34 | - componentDidMount() { | |
35 | 28 | this.props.fetchFederationItem() |
36 | 29 | .then(resp =>{ |
37 | 30 | this.setState({showFed: true}) |
@@ -41,6 +34,11 @@ class Navigation extends React.Component { | ||
41 | 34 | }) |
42 | 35 | } |
43 | 36 | |
37 | + openTutorial(event) { | |
38 | + event.preventDefault() | |
39 | + this.props.openTutorial() | |
40 | + } | |
41 | + | |
44 | 42 | render() { |
45 | 43 | const t = this.props.t |
46 | 44 | return ( |