mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 08:16:09 +08:00
fix(sentry-archive): Import Actions into ThreadListQuickActions
This commit is contained in:
parent
a5828aff1f
commit
6f46df3141
|
@ -44,11 +44,10 @@ class ThreadListQuickActions extends React.Component
|
||||||
return false
|
return false
|
||||||
|
|
||||||
_onTrash: (event) =>
|
_onTrash: (event) =>
|
||||||
params = {
|
params =
|
||||||
thread: @props.thread,
|
thread: @props.thread,
|
||||||
labelsToRemove: [CategoryStore.byId(@props.categoryId)],
|
labelsToRemove: [CategoryStore.byId(@props.categoryId)],
|
||||||
labelsToAdd: [CategoryStore.getStandardCategory("trash")]
|
labelsToAdd: [CategoryStore.getStandardCategory("trash")]
|
||||||
}
|
|
||||||
Actions.queueTask(new ChangeLabelsTask(params))
|
Actions.queueTask(new ChangeLabelsTask(params))
|
||||||
# Don't trigger the thread row click
|
# Don't trigger the thread row click
|
||||||
event.stopPropagation()
|
event.stopPropagation()
|
||||||
|
|
|
@ -3,6 +3,7 @@ FocusedCategoryStore = require '../stores/focused-category-store'
|
||||||
|
|
||||||
ChangeLabelsTask = require './change-labels-task'
|
ChangeLabelsTask = require './change-labels-task'
|
||||||
ChangeFolderTask = require './change-folder-task'
|
ChangeFolderTask = require './change-folder-task'
|
||||||
|
Actions = require '../actions'
|
||||||
|
|
||||||
NamespaceStore = require '../stores/namespace-store'
|
NamespaceStore = require '../stores/namespace-store'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue