mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-22 23:23:54 +08:00
fix(thread-list): Fix drag and drop to new folders/labels
This commit is contained in:
parent
182f6abb25
commit
b0ac02058b
1 changed files with 1 additions and 3 deletions
|
@ -202,8 +202,6 @@ class EmptyMailboxPerspective extends MailboxPerspective
|
||||||
canTrashThreads: =>
|
canTrashThreads: =>
|
||||||
false
|
false
|
||||||
|
|
||||||
receiveThreads: (threadsOrIds) =>
|
|
||||||
|
|
||||||
|
|
||||||
class CategoryMailboxPerspective extends MailboxPerspective
|
class CategoryMailboxPerspective extends MailboxPerspective
|
||||||
constructor: (@_categories) ->
|
constructor: (@_categories) ->
|
||||||
|
@ -272,7 +270,7 @@ class CategoryMailboxPerspective extends MailboxPerspective
|
||||||
# attached to this perspective
|
# attached to this perspective
|
||||||
DatabaseStore.modelify(Thread, threadsOrIds).then (threads) =>
|
DatabaseStore.modelify(Thread, threadsOrIds).then (threads) =>
|
||||||
tasks = TaskFactory.tasksForApplyingCategories
|
tasks = TaskFactory.tasksForApplyingCategories
|
||||||
threads: threadsOrIds
|
threads: threads
|
||||||
categoriesToRemove: (accountId) -> _.filter(currentCategories, _.matcher({accountId}))
|
categoriesToRemove: (accountId) -> _.filter(currentCategories, _.matcher({accountId}))
|
||||||
categoryToAdd: (accountId) => _.findWhere(@_categories, {accountId})
|
categoryToAdd: (accountId) => _.findWhere(@_categories, {accountId})
|
||||||
Actions.queueTasks(tasks)
|
Actions.queueTasks(tasks)
|
||||||
|
|
Loading…
Reference in a new issue