mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 04:25:31 +08:00
79b6c1d94a
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
19 lines
456 B
CoffeeScript
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()
|