mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
23 lines
397 B
CoffeeScript
23 lines
397 B
CoffeeScript
_ = require 'underscore'
|
|
ipc = require 'ipc'
|
|
Reflux = require 'reflux'
|
|
|
|
PluginsActions = require './plugins-actions'
|
|
|
|
module.exports =
|
|
TabsStore = Reflux.createStore
|
|
|
|
init: ->
|
|
@_tabIndex = 0
|
|
@listenTo(PluginsActions.selectTabIndex, @_onTabIndexChanged)
|
|
|
|
# Getters
|
|
|
|
tabIndex: ->
|
|
@_tabIndex
|
|
|
|
# Action Handlers
|
|
|
|
_onTabIndexChanged: (idx) ->
|
|
@_tabIndex = idx
|
|
@trigger(@)
|