Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
Merge branch 'metadata_as_json'
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpyle committed May 17, 2019
2 parents 7f92a97 + ae93806 commit c6e5288
Show file tree
Hide file tree
Showing 9 changed files with 808 additions and 491 deletions.
292 changes: 184 additions & 108 deletions app/actions/bundle.actions.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions app/actions/bundleManageResources.actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { dblDotLocalService } from '../services/dbl_dot_local.service';
import { utilities } from '../utils/utilities';
import { openEditMetadata, saveMetadatFileToTempBundleFolder } from './bundleEditMetadata.actions';
import { bundleActions } from './bundle.actions';
import { getResourcesDetails } from '../helpers/bundle.helpers';

export const bundleManageResourceActions = {
openResourceManager,
Expand All @@ -25,7 +26,7 @@ export const bundleManageResourceActions = {
export function openResourceManager(_bundleId, _mode) {
return async (dispatch, getState) => {
await bundleService.waitStopCreateMode(_bundleId);
dispatch(bundleActions.updateBundle(_bundleId, true));
dispatch(bundleActions.updateBundle(_bundleId));
const { addedByBundleIds } = getState().bundles;
const bundleId = _bundleId;
const bundle = addedByBundleIds[bundleId];
Expand Down Expand Up @@ -66,7 +67,7 @@ export function getManifestResources(_bundleId) {
return async dispatch => {
try {
dispatch(request(_bundleId));
const manifestResources = await bundleService.getManifestResourceDetails(_bundleId);
const manifestResources = getResourcesDetails(_bundleId);
const rawBundle = await bundleService.fetchById(_bundleId);
const storedFiles = bundleService.getFlatFileInfo(rawBundle);
dispatch(success(_bundleId, manifestResources, storedFiles));
Expand Down
Loading

0 comments on commit c6e5288

Please sign in to comment.