mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 04:25:31 +08:00
324123731a
- Adds settings option to select default account to send from
45 lines
1.4 KiB
CoffeeScript
45 lines
1.4 KiB
CoffeeScript
React = require 'react'
|
|
_ = require 'underscore'
|
|
{RetinaImg, Flexbox} = require 'nylas-component-kit'
|
|
{AccountStore} = require 'nylas-exports'
|
|
|
|
ConfigSchemaItem = require './config-schema-item'
|
|
WorkspaceSection = require './workspace-section'
|
|
SendingSection = require './sending-section'
|
|
|
|
class PreferencesGeneral extends React.Component
|
|
@displayName: 'PreferencesGeneral'
|
|
|
|
render: =>
|
|
<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} />
|
|
|
|
<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>
|
|
|
|
<ConfigSchemaItem
|
|
configSchema={@props.configSchema.properties.reading}
|
|
keyName="Reading"
|
|
keyPath="core.reading"
|
|
config={@props.config} />
|
|
|
|
<SendingSection config={@props.config} configSchema={@props.configSchema} />
|
|
|
|
<ConfigSchemaItem
|
|
configSchema={@props.configSchema.properties.attachments}
|
|
keyName="Attachments"
|
|
keyPath="core.attachments"
|
|
config={@props.config} />
|
|
|
|
</div>
|
|
|
|
module.exports = PreferencesGeneral
|