Class: WorkItems::Widgets::Labels

Inherits:
Base
  • Object
show all
Defined in:
app/models/work_items/widgets/labels.rb

Instance Attribute Summary

Attributes inherited from Base

#widget_definition, #work_item

Class Method Summary collapse

Methods inherited from Base

api_symbol, callback_class, #initialize, process_quick_action_param, sync_data_callback_class, #sync_data_callback_class, type, #type

Constructor Details

This class inherits a constructor from WorkItems::Widgets::Base

Class Method Details

.quick_action_commandsObject



10
11
12
# File 'app/models/work_items/widgets/labels.rb', line 10

def quick_action_commands
  [:label, :labels, :relabel, :remove_label, :unlabel]
end

.quick_action_paramsObject



14
15
16
# File 'app/models/work_items/widgets/labels.rb', line 14

def quick_action_params
  [:add_label_ids, :remove_label_ids, :label_ids]
end

.sorting_keysObject



18
19
20
21
22
23
24
25
26
27
# File 'app/models/work_items/widgets/labels.rb', line 18

def sorting_keys
  {
    label_priority_asc: {
      description: 'Label priority by ascending order.'
    },
    label_priority_desc: {
      description: 'Label priority by descending order.'
    }
  }
end