fix(snooze): Hide N1-Snoozed from the category picker

This commit is contained in:
Ben Gotow 2016-02-25 13:32:12 -08:00
parent 4c9a02d9e6
commit a1db17e3c9

View file

@ -315,13 +315,13 @@ class CategoryPicker extends React.Component
currentCategoryIds = _.pluck(currentCategories, 'id')
if @_account?.usesLabels()
hiddenCategories = ["all", "drafts", "sent", "archive", "starred", "important"]
hiddenCategories = ["all", "drafts", "sent", "archive", "starred", "important", "N1-Snoozed"]
hiddenCategories.push("inbox") if allInInbox
return false if category.divider
else if @_account?.usesFolders()
hiddenCategories = ["drafts", "sent"]
hiddenCategories = ["drafts", "sent", "N1-Snoozed"]
return (category.name not in hiddenCategories) and not (category.id in currentCategoryIds)
return (category.name not in hiddenCategories) and (category.displayName not in hiddenCategories) and (category.id not in currentCategoryIds)
_allInInbox: (usageCount, numThreads) ->
return unless @_account?