Sha256: 42be480e254d47ebaa2faaf1abb93b13a1946bf48907d20b1333b2ba37e0d7ab

Contents?: true

Size: 573 Bytes

Versions: 25

Compression:

Stored size: 573 Bytes

Contents

# frozen_string_literal: true

module Blacklight
  class StartOverButtonComponent < Blacklight::Component
    def call
      link_to t('blacklight.search.start_over'), start_over_path, class: 'catalog_startOverLink btn btn-primary'
    end

    private

    ##
    # Get the path to the search action with any parameters (e.g. view type)
    # that should be persisted across search sessions.
    def start_over_path query_params = params
      Deprecation.silence(Blacklight::UrlHelperBehavior) do
        helpers.start_over_path(query_params)
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
blacklight-7.40.0 app/components/blacklight/start_over_button_component.rb
blacklight-7.39.0 app/components/blacklight/start_over_button_component.rb
blacklight-7.38.0 app/components/blacklight/start_over_button_component.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/app/components/blacklight/start_over_button_component.rb
blacklight-7.37.0 app/components/blacklight/start_over_button_component.rb
blacklight-7.36.2 app/components/blacklight/start_over_button_component.rb
blacklight-7.36.1 app/components/blacklight/start_over_button_component.rb
blacklight-7.36.0 app/components/blacklight/start_over_button_component.rb
blacklight-7.35.0 app/components/blacklight/start_over_button_component.rb
blacklight-7.34.0 app/components/blacklight/start_over_button_component.rb
blacklight-7.33.1 app/components/blacklight/start_over_button_component.rb
blacklight-7.33.0 app/components/blacklight/start_over_button_component.rb
blacklight-7.32.0 app/components/blacklight/start_over_button_component.rb
blacklight-7.31.0 app/components/blacklight/start_over_button_component.rb
blacklight-7.30.0 app/components/blacklight/start_over_button_component.rb
blacklight-7.29.0 app/components/blacklight/start_over_button_component.rb
blacklight-7.28.0 app/components/blacklight/start_over_button_component.rb
blacklight-7.27.1 app/components/blacklight/start_over_button_component.rb
blacklight-7.27.0 app/components/blacklight/start_over_button_component.rb
blacklight-7.26.1 app/components/blacklight/start_over_button_component.rb