mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-21 22:54:11 +08:00
Fix SuggestioStore -- update to use NylasStore
This commit is contained in:
parent
df124e1472
commit
b1d1889f28
1 changed files with 6 additions and 5 deletions
|
@ -1,4 +1,5 @@
|
||||||
Reflux = require 'reflux'
|
_ = require 'underscore'
|
||||||
|
NylasStore = require 'nylas-store'
|
||||||
{Contact,
|
{Contact,
|
||||||
Thread,
|
Thread,
|
||||||
Actions,
|
Actions,
|
||||||
|
@ -6,7 +7,6 @@ Reflux = require 'reflux'
|
||||||
AccountStore,
|
AccountStore,
|
||||||
FocusedPerspectiveStore,
|
FocusedPerspectiveStore,
|
||||||
ContactStore} = require 'nylas-exports'
|
ContactStore} = require 'nylas-exports'
|
||||||
_ = require 'underscore'
|
|
||||||
|
|
||||||
SearchActions = require './search-actions'
|
SearchActions = require './search-actions'
|
||||||
|
|
||||||
|
@ -15,8 +15,9 @@ SearchActions = require './search-actions'
|
||||||
# for changes in selectedThread, "DatabaseStore" for changes to the underlying database,
|
# for changes in selectedThread, "DatabaseStore" for changes to the underlying database,
|
||||||
# and vends up the array used for that view.
|
# and vends up the array used for that view.
|
||||||
|
|
||||||
SearchSuggestionStore = Reflux.createStore
|
class SearchSuggestionStore extends NylasStore
|
||||||
init: ->
|
|
||||||
|
constructor: ->
|
||||||
@_query = ""
|
@_query = ""
|
||||||
@_clearResults()
|
@_clearResults()
|
||||||
|
|
||||||
|
@ -124,4 +125,4 @@ SearchSuggestionStore = Reflux.createStore
|
||||||
|
|
||||||
suggestions: -> @_suggestions
|
suggestions: -> @_suggestions
|
||||||
|
|
||||||
module.exports = SearchSuggestionStore
|
module.exports = new SearchSuggestionStore()
|
||||||
|
|
Loading…
Reference in a new issue