debian-mirror-gitlab/app/models/work_items/widgets/labels.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
411 B
Ruby
Raw Normal View History

2022-08-27 11:52:29 +05:30
# frozen_string_literal: true
module WorkItems
module Widgets
class Labels < Base
delegate :labels, to: :work_item
delegate :allows_scoped_labels?, to: :work_item
2023-04-23 21:23:45 +05:30
def self.quick_action_commands
[:label, :labels, :relabel, :remove_label, :unlabel]
end
def self.quick_action_params
[:add_label_ids, :remove_label_ids, :label_ids]
end
2022-08-27 11:52:29 +05:30
end
end
end