Skip to content
Snippets Groups Projects
Commit e3fb0aa2 authored by Jack Reed's avatar Jack Reed
Browse files

Replace getManifestBehaviors with getSequenceBehaviors

parent 838b0219
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ import { withStyles } from '@material-ui/core';
import { withTranslation } from 'react-i18next';
import { withPlugins } from '../extend/withPlugins';
import * as actions from '../state/actions';
import { getManifest, getManifestoInstance, getManifestBehaviors } from '../state/selectors';
import { getManifest, getManifestoInstance, getSequenceBehaviors } from '../state/selectors';
import { CollectionDialog } from '../components/CollectionDialog';
/**
......@@ -36,7 +36,7 @@ const mapStateToProps = (state) => {
collection: collection && getManifestoInstance(state, { manifestId: collection.id }),
collectionPath,
error: manifest && manifest.error,
isMultipart: getManifestBehaviors(state, { manifestId }).includes('multi-part'),
isMultipart: getSequenceBehaviors(state, { manifestId }).includes('multi-part'),
manifest: manifest && getManifestoInstance(state, { manifestId }),
manifestId,
open: state.workspace.collectionDialogOn,
......
......@@ -7,7 +7,7 @@ import {
getManifest,
getManifestTitle, getManifestThumbnail, getCanvases,
getManifestLogo, getManifestProvider, getWindowManifests,
getManifestoInstance, getManifestBehaviors,
getManifestoInstance, getSequenceBehaviors,
} from '../state/selectors';
import * as actions from '../state/actions';
import { ManifestListItem } from '../components/ManifestListItem';
......@@ -29,7 +29,7 @@ const mapStateToProps = (state, { manifestId, provider }) => {
isCollection,
isFetching: manifest.isFetching,
isMultipart: isCollection
&& getManifestBehaviors(state, { manifestId }).includes('multi-part'),
&& getSequenceBehaviors(state, { manifestId }).includes('multi-part'),
manifestLogo: getManifestLogo(state, { manifestId }),
provider: provider
|| getManifestProvider(state, { manifestId }),
......
......@@ -43,7 +43,7 @@ export function* importConfig({ config: { thumbnailNavigation, windows } }) {
/** */
export function* fetchCollectionManifests(action) {
const { collectionPath, manifestId } = action.payload;
const { collectionPath, manifestId } = action;
yield call(fetchManifests, manifestId, ...collectionPath);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment