Mailspring/internal_packages/settings/lib/settings-store.coffee
Ben Gotow a3b45cf33a feature(package-management): Package management interface, APM integration
Summary:
Update a few more packages to deactivate properly

Miscelaneous fixes

Initial commit of new settings package

WIP

WIP - can load and unload and install / uninstall

Click to create new boilerplate package, package updating

Test Plan: Run tests

Reviewers: evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D1582
2015-06-02 19:04:21 -07:00

23 lines
404 B
CoffeeScript

_ = require 'underscore'
ipc = require 'ipc'
Reflux = require 'reflux'
SettingsActions = require './settings-actions'
module.exports =
SettingsStore = Reflux.createStore
init: ->
@_tabIndex = 0
@listenTo(SettingsActions.selectTabIndex, @_onTabIndexChanged)
# Getters
tabIndex: ->
@_tabIndex
# Action Handlers
_onTabIndexChanged: (idx) ->
@_tabIndex = idx
@trigger(@)