File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { openFile } from 'commands/commandBindings/file'
7
7
import * as delegate from 'commons/Search/action'
8
8
import icons from 'file-icons-js'
9
9
import { Aa , Word , Reg } from './icons'
10
- import * as api from 'backendAPI/searchAPI '
10
+ import api from 'backendAPI/'
11
11
import config from 'config'
12
12
13
13
const hoverColor = '#337ab7'
@@ -74,6 +74,10 @@ export class SearchResultItem extends Component {
74
74
75
75
@observer
76
76
class SearchPanel extends Component {
77
+ componentWillMount ( ) {
78
+ api . connectSearchWebsocketClient ( )
79
+ }
80
+
77
81
componentDidMount ( ) {
78
82
subscribeToSearch ( )
79
83
}
Original file line number Diff line number Diff line change @@ -79,11 +79,6 @@ const stepCache = observable.map({
79
79
func : ( ) =>
80
80
api . connectWebsocketClient ( )
81
81
} ,
82
- connectSearchSocket : {
83
- desc : 'Connect Search Websocket' ,
84
- func : ( ) =>
85
- api . connectSearchWebsocketClient ( )
86
- } ,
87
82
preventAccidentalClose : {
88
83
desc : 'Prevent accidental close' ,
89
84
func : ( ) => {
Original file line number Diff line number Diff line change @@ -205,11 +205,6 @@ const stepCache = observable.map({
205
205
func : ( ) =>
206
206
api . connectWebsocketClient ( )
207
207
} ,
208
- connectSearchSocket : {
209
- desc : 'Connect Search WebSocket' ,
210
- func : ( ) =>
211
- api . connectSearchWebsocketClient ( )
212
- } ,
213
208
getProjectType : {
214
209
desc : 'Estimate project type -- platform' ,
215
210
enable : config . isPlatform ,
You can’t perform that action at this time.
0 commit comments