fix(sentry-archive): Import Actions into ThreadListQuickActions

This commit is contained in:
Ben Gotow 2015-08-17 14:51:03 -07:00
parent a5828aff1f
commit 6f46df3141
2 changed files with 5 additions and 5 deletions

View file

@ -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()

View file

@ -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'