Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dashboard sidebar partials #208

Merged
merged 2 commits into from
Nov 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ GIT

GIT
remote: https://github.com/samvera-labs/allinson_flex.git
revision: c5a26413d66951ccf2ea1b8b09c1e083b06702a3
revision: c1dfe12e5386f8f4325b3a19dde949ecef1fede3
specs:
allinson_flex (0.1.0)
json_schemer
Expand All @@ -18,7 +18,7 @@ GIT

GIT
remote: https://github.com/samvera-labs/bulkrax
revision: d45a8846002af2c89dc722acc0c06401b0d16ba8
revision: a2525f7e14de7b99d1b48fa17221fe9fee2c6f8d
specs:
bulkrax (4.3.0)
bagit (~> 0.4)
Expand Down
34 changes: 0 additions & 34 deletions app/views/hyrax/dashboard/sidebar/_repository_content.html.erb

This file was deleted.

2 changes: 2 additions & 0 deletions config/initializers/allinson_flex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@
# config.m3_schema_version_tag = 'main'
end
Hyrax::CurationConcern.actor_factory.insert_before Hyrax::Actors::ModelActor, AllinsonFlex::DynamicSchemaActor

Hyrax::DashboardController.sidebar_partials[:repository_content] << "hyrax/dashboard/sidebar/allinson_flex_sidebar_additions" if Object.const_defined?(:Hyrax) && ::Hyrax::DashboardController&.respond_to?(:sidebar_partials)
3 changes: 3 additions & 0 deletions config/initializers/bulkrax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,6 @@
# config.reserved_properties += ['my_field']
end
end

# Sidebar for hyrax 3+ support
Hyrax::DashboardController.sidebar_partials[:repository_content] << "hyrax/dashboard/sidebar/bulkrax_sidebar_additions" if Object.const_defined?(:Hyrax) && ::Hyrax::DashboardController&.respond_to?(:sidebar_partials)