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