UNC-Libraries/hy-c

View on GitHub
app/overrides/helpers/hyrax/work_form_helper_override.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true
# https://github.com/samvera/hyrax/blob/hyrax-v4.0.0/app/helpers/hyrax/work_form_helper.rb
Hyrax::WorkFormHelper.module_eval do
  def form_tabs_for(form:)
    if form.instance_of? Hyrax::Forms::BatchUploadForm
      %w[files metadata relationships]
    else
      # [hyc-override] remove files tab.
      %w[metadata relationships]
    end
  end
end