mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +08:00
256813208f
Summary: When two or more buttons are grouped together, cut the padding off one interior edge so they're spaced more appropriately Remove source list graphics for active states we aren't using Starred in the sidebar Small fix to the feature that keeps the selected item visible as you scroll Test Plan: No new tests yet Reviewers: evan Reviewed By: evan Differential Revision: https://phab.nylas.com/D1607
47 lines
1.6 KiB
CoffeeScript
47 lines
1.6 KiB
CoffeeScript
_ = require 'underscore'
|
|
React = require "react"
|
|
{ComponentRegistry, WorkspaceStore} = require "nylas-exports"
|
|
|
|
{DownButton, UpButton, ThreadBulkArchiveButton, ThreadBulkStarButton} = require "./thread-buttons"
|
|
ThreadSelectionBar = require './thread-selection-bar'
|
|
ThreadList = require './thread-list'
|
|
|
|
DraftSelectionBar = require './draft-selection-bar'
|
|
DraftList = require './draft-list'
|
|
|
|
module.exports =
|
|
activate: (@state={}) ->
|
|
ComponentRegistry.register ThreadList,
|
|
location: WorkspaceStore.Location.ThreadList
|
|
|
|
ComponentRegistry.register ThreadSelectionBar,
|
|
location: WorkspaceStore.Location.ThreadList.Toolbar
|
|
|
|
ComponentRegistry.register DraftList,
|
|
location: WorkspaceStore.Location.DraftList
|
|
|
|
ComponentRegistry.register DraftSelectionBar,
|
|
location: WorkspaceStore.Location.DraftList.Toolbar
|
|
|
|
ComponentRegistry.register DownButton,
|
|
location: WorkspaceStore.Sheet.Thread.Toolbar.Right
|
|
modes: ['list']
|
|
|
|
ComponentRegistry.register UpButton,
|
|
location: WorkspaceStore.Sheet.Thread.Toolbar.Right
|
|
modes: ['list']
|
|
|
|
ComponentRegistry.register ThreadBulkArchiveButton,
|
|
role: 'thread:BulkAction'
|
|
|
|
ComponentRegistry.register ThreadBulkStarButton,
|
|
role: 'thread:BulkAction'
|
|
|
|
deactivate: ->
|
|
ComponentRegistry.unregister DraftList
|
|
ComponentRegistry.unregister DraftSelectionBar
|
|
ComponentRegistry.unregister ThreadList
|
|
ComponentRegistry.unregister ThreadSelectionBar
|
|
ComponentRegistry.unregister ThreadBulkArchiveButton
|
|
ComponentRegistry.unregister DownButton
|
|
ComponentRegistry.unregister UpButton
|