scinote-web/app/components/reports/project_members_input_component.rb
2021-04-20 13:57:09 +02:00

11 lines
417 B
Ruby

# frozen_string_literal: true
module Reports
class ProjectMembersInputComponent < TemplateValueComponent
def initialize(report:, name:, label:, placeholder: nil, editing: true, displayed_field: :full_name)
super(report: report, name: name, label: label, placeholder: placeholder, editing: editing)
@project_members = report.project&.users
@displayed_field = displayed_field
end
end
end