X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2d04921ec52baaa9da2e0ffee436ad24e13e9921..a15202e53207acc1878f02c00224d1df9540da8c:/src/store/collections/collection-create-actions.ts diff --git a/src/store/collections/collection-create-actions.ts b/src/store/collections/collection-create-actions.ts index 140756bfe6..81d8948ce1 100644 --- a/src/store/collections/collection-create-actions.ts +++ b/src/store/collections/collection-create-actions.ts @@ -4,31 +4,31 @@ import { Dispatch } from "redux"; import { reset, startSubmit, stopSubmit, initialize, FormErrors } from 'redux-form'; -import { RootState } from '~/store/store'; -import { getUserUuid } from "~/common/getuser"; -import { dialogActions } from "~/store/dialog/dialog-actions"; -import { ServiceRepository } from '~/services/services'; -import { getCommonResourceServiceError, CommonResourceServiceError } from "~/services/common-service/common-resource-service"; +import { RootState } from 'store/store'; +import { getUserUuid } from "common/getuser"; +import { dialogActions } from "store/dialog/dialog-actions"; +import { ServiceRepository } from 'services/services'; +import { getCommonResourceServiceError, CommonResourceServiceError } from "services/common-service/common-resource-service"; import { uploadCollectionFiles } from './collection-upload-actions'; -import { fileUploaderActions } from '~/store/file-uploader/file-uploader-actions'; -import { progressIndicatorActions } from "~/store/progress-indicator/progress-indicator-actions"; -import { isItemNotInProject, isProjectOrRunProcessRoute } from '~/store/projects/project-create-actions'; -import { snackbarActions, SnackbarKind } from '~/store/snackbar/snackbar-actions'; -import { CollectionResource } from "~/models/collection"; +import { fileUploaderActions } from 'store/file-uploader/file-uploader-actions'; +import { progressIndicatorActions } from "store/progress-indicator/progress-indicator-actions"; +import { isProjectOrRunProcessRoute } from 'store/projects/project-create-actions'; +import { snackbarActions, SnackbarKind } from 'store/snackbar/snackbar-actions'; +import { CollectionResource } from "models/collection"; export interface CollectionCreateFormDialogData { ownerUuid: string; name: string; description: string; + storageClassesDesired: string[]; } export const COLLECTION_CREATE_FORM_NAME = "collectionCreateFormName"; export const openCollectionCreateDialog = (ownerUuid: string) => (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => { - const router = getState(); - const properties = getState().properties; - if (isItemNotInProject(properties) || !isProjectOrRunProcessRoute(router)) { + const { router } = getState(); + if (!isProjectOrRunProcessRoute(router)) { const userUuid = getUserUuid(getState()); if (!userUuid) { return; } dispatch(initialize(COLLECTION_CREATE_FORM_NAME, { ownerUuid: userUuid }));