mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-09 09:38:07 +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(@)
|