2015-08-15 06:40:11 +08:00
|
|
|
React = require 'react'
|
|
|
|
_ = require 'underscore'
|
|
|
|
{RetinaImg, Flexbox} = require 'nylas-component-kit'
|
2015-11-24 04:20:51 +08:00
|
|
|
{AccountStore} = require 'nylas-exports'
|
|
|
|
|
|
|
|
ConfigSchemaItem = require './config-schema-item'
|
|
|
|
WorkspaceSection = require './workspace-section'
|
2016-01-26 10:20:19 +08:00
|
|
|
SendingSection = require './sending-section'
|
2015-08-15 06:40:11 +08:00
|
|
|
|
|
|
|
class PreferencesGeneral extends React.Component
|
|
|
|
@displayName: 'PreferencesGeneral'
|
|
|
|
|
|
|
|
render: =>
|
2015-11-24 04:20:51 +08:00
|
|
|
<div className="container" style={maxWidth:600}>
|
|
|
|
|
|
|
|
<WorkspaceSection config={@props.config} configSchema={@props.configSchema} />
|
|
|
|
|
|
|
|
<ConfigSchemaItem
|
|
|
|
configSchema={@props.configSchema.properties.notifications}
|
|
|
|
keyName="Notifications"
|
|
|
|
keyPath="core.notifications"
|
|
|
|
config={@props.config} />
|
|
|
|
|
2015-12-04 03:36:54 +08:00
|
|
|
<div className="platform-note platform-linux-only">
|
|
|
|
N1 desktop notifications on Linux require Zenity. You may need to install
|
|
|
|
it with your package manager (ie: <code>sudo apt-get install zenity</code>)
|
|
|
|
</div>
|
|
|
|
|
2015-11-24 04:20:51 +08:00
|
|
|
<ConfigSchemaItem
|
|
|
|
configSchema={@props.configSchema.properties.reading}
|
|
|
|
keyName="Reading"
|
|
|
|
keyPath="core.reading"
|
|
|
|
config={@props.config} />
|
|
|
|
|
2016-01-26 10:20:19 +08:00
|
|
|
<SendingSection config={@props.config} configSchema={@props.configSchema} />
|
2015-11-24 04:20:51 +08:00
|
|
|
|
|
|
|
<ConfigSchemaItem
|
|
|
|
configSchema={@props.configSchema.properties.attachments}
|
|
|
|
keyName="Attachments"
|
|
|
|
keyPath="core.attachments"
|
|
|
|
config={@props.config} />
|
2015-08-15 06:40:11 +08:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
module.exports = PreferencesGeneral
|