Merge pull request #1015 from basecamp/filter-by-draft-status
Filter to just drafts
This commit is contained in:
@@ -25,6 +25,7 @@ class Card < ApplicationRecord
|
||||
when "falling_back_soon" then falling_back_soon
|
||||
when "closed" then closed.recently_closed_first
|
||||
when "golden" then golden
|
||||
when "draft" then drafted
|
||||
else all
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
module Filter::Fields
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
INDEXES = %w[ all stalled closing_soon falling_back_soon golden ]
|
||||
INDEXES = %w[ all stalled closing_soon falling_back_soon golden draft ]
|
||||
SORTED_BY = %w[ newest oldest latest ]
|
||||
|
||||
delegate :default_value?, to: :class
|
||||
|
||||
Reference in New Issue
Block a user