X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3c2e32130d4229eada68f21d4000da9a0f844ba4..20063f6f7bb9ad7c6a9a0b49b3c5ba4b0abc532e:/src/store/collections/collection-update-actions.ts diff --git a/src/store/collections/collection-update-actions.ts b/src/store/collections/collection-update-actions.ts index 2faaa215b4..a9077cfb74 100644 --- a/src/store/collections/collection-update-actions.ts +++ b/src/store/collections/collection-update-actions.ts @@ -4,22 +4,22 @@ import { Dispatch } from "redux"; import { FormErrors, initialize, startSubmit, stopSubmit } from 'redux-form'; -import { RootState } from "~/store/store"; -import { collectionPanelActions } from "~/store/collection-panel/collection-panel-action"; -import { dialogActions } from "~/store/dialog/dialog-actions"; -import { getCommonResourceServiceError, CommonResourceServiceError } from "~/services/common-service/common-resource-service"; -import { ServiceRepository } from "~/services/services"; -import { CollectionResource } from '~/models/collection'; -import { progressIndicatorActions } from "~/store/progress-indicator/progress-indicator-actions"; +import { RootState } from "store/store"; +import { collectionPanelActions } from "store/collection-panel/collection-panel-action"; +import { dialogActions } from "store/dialog/dialog-actions"; +import { getCommonResourceServiceError, CommonResourceServiceError } from "services/common-service/common-resource-service"; +import { ServiceRepository } from "services/services"; +import { CollectionResource } from 'models/collection'; +import { progressIndicatorActions } from "store/progress-indicator/progress-indicator-actions"; import { snackbarActions, SnackbarKind } from "../snackbar/snackbar-actions"; import { updateResources } from "../resources/resources-actions"; -import { reloadProjectMatchingUuid } from "../workbench/workbench-actions"; import { loadDetailsPanel } from "../details-panel/details-panel-action"; export interface CollectionUpdateFormDialogData { uuid: string; name: string; description?: string; + storageClassesDesired?: string[]; } export const COLLECTION_UPDATE_FORM_NAME = 'collectionUpdateFormName'; @@ -38,6 +38,7 @@ export const updateCollection = (collection: CollectionUpdateFormDialogData) => services.collectionService.update(uuid, { name: collection.name, + storageClassesDesired: collection.storageClassesDesired, description: collection.description } ).then(updatedCollection => { dispatch(collectionPanelActions.LOAD_COLLECTION_SUCCESS({ item: updatedCollection as CollectionResource })); @@ -49,7 +50,6 @@ export const updateCollection = (collection: CollectionUpdateFormDialogData) => kind: SnackbarKind.SUCCESS })); dispatch(updateResources([updatedCollection])); - dispatch(reloadProjectMatchingUuid([updatedCollection.ownerUuid])); dispatch(loadDetailsPanel(updatedCollection.uuid)); }).catch (e => { dispatch(progressIndicatorActions.STOP_WORKING(COLLECTION_UPDATE_FORM_NAME));