Skip to content

Commit

Permalink
banner skipping from hyrax
Browse files Browse the repository at this point in the history
  • Loading branch information
orangewolf committed Nov 8, 2024
1 parent 9ae35fe commit 3e58270
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ module Steps
module SaveCollectionBannerDecorator
include Hyku::CollectionBrandingBehavior

def call(collection_resource, update_banner_file_ids: nil, alttext: nil)
def call(collection_resource, update_banner_file_ids: nil, alttext: nil, banner_unchanged_indicator: true)
return Success(collection_resource) if ActiveModel::Type::Boolean.new.cast(banner_unchanged_indicator)
collection_id = collection_resource.id.to_s
process_banner_input(collection_id:, update_banner_file_ids:, alttext:)
Success(collection_resource)
Expand Down

0 comments on commit 3e58270

Please sign in to comment.