-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't reload the collection to populate subcollection modal
this view used to call `#find` to retirieve a collection from an id. we already have a presenter and a solr document, so there's no need for this. instead, allow `Hyrax::Ability` to resolve `CollectionPresenter` to its underlying `SolrDocument`. Add `CollectionPresenter#nestable?` as an alias to the existing `#collection_type_is_nestable?` to match the `Collection` interface, and pass the presenter through to the modal. we continue to pass the id into the modal for backward compatibility.
- Loading branch information
tamsin johnson
committed
May 28, 2021
1 parent
e413236
commit 2a38191
Showing
5 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters