Mailspring/internal_packages/preferences/lib/preferences-store.coffee
Ben Gotow 79b6c1d94a feat(preferences): WIP Preferences panel
Summary:
Things still to come:
- General tab
- Signatures tab (potentially remove and land)

Adding emacs things to gitignore

Adding progress. iterating on html/css is incredibly painful

Added layout for accounts page.

Adding layout for appearance page

layout for shortcuts preferences page

adding layount for notifications menu

Adding signatures layout

WIP

WIP - tab switching, accounts tab

WIP ALL THE THINGS

Keymap template support (Gmail / outlook, etc.)

Test Plan: No tests atm

Reviewers: evan

Differential Revision: https://phab.nylas.com/D1890
2015-08-14 15:40:11 -07:00

19 lines
456 B
CoffeeScript

Reflux = require 'reflux'
_ = require 'underscore'
NylasStore = require 'nylas-store'
{Actions} = require 'nylas-exports'
class PreferencesStore extends NylasStore
constructor: ->
@_tabs = []
@listenTo Actions.registerPreferencesTab, @_registerTab
tabs: =>
@_tabs
_registerTab: (tabConfig) =>
@_tabs.push(tabConfig)
@_triggerSoon ?= _.debounce(( => @trigger()), 20)
@_triggerSoon()
module.exports = new PreferencesStore()