[ARVADOS-WORKBENCH2] updated: 1.3.0-240-g53174403

Git user git at public.curoverse.com
Fri Dec 21 08:13:53 EST 2018


Summary of changes:
 src/store/projects/project-create-actions.ts                        | 6 +++---
 .../project-properties/create-project-properties-list.tsx           | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

       via  53174403f4eac7d7f67540ce4491b85d72c64d71 (commit)
      from  9a37cc202448e431064b247d36ac0229a6bfa9b2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 53174403f4eac7d7f67540ce4491b85d72c64d71
Author: Janicki Artur <artur.janicki at contractors.roche.com>
Date:   Fri Dec 21 14:11:11 2018 +0100

    change selector name for project create form
    
    Feature #14248_assigning_properties_to_projects_during_create
    
    Arvados-DCO-1.1-Signed-off-by: Janicki Artur <artur.janicki at contractors.roche.com>

diff --git a/src/store/projects/project-create-actions.ts b/src/store/projects/project-create-actions.ts
index cb0b72aa..ddcd233f 100644
--- a/src/store/projects/project-create-actions.ts
+++ b/src/store/projects/project-create-actions.ts
@@ -25,7 +25,7 @@ export interface ProjectProperties {
 
 export const PROJECT_CREATE_FORM_NAME = 'projectCreateFormName';
 export const PROJECT_CREATE_PROPERTIES_FORM_NAME = 'projectCreatePropertiesFormName';
-export const CREATE_FORM_SELECTOR = formValueSelector(PROJECT_CREATE_FORM_NAME);
+export const PROJECT_CREATE_FORM_SELECTOR = formValueSelector(PROJECT_CREATE_FORM_NAME);
 
 export const isProjectOrRunProcessRoute = ({ router }: RootState) => {
     const pathname = router.location ? router.location.pathname : '';
@@ -74,14 +74,14 @@ export const createProject = (project: Partial<ProjectResource>) =>
 
 export const addPropertyToCreateProjectForm = (data: ResourcePropertiesFormData) =>
     (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
-        const properties = { ...CREATE_FORM_SELECTOR(getState(), 'properties') };
+        const properties = { ...PROJECT_CREATE_FORM_SELECTOR(getState(), 'properties') };
         properties[data.key] = data.value;
         dispatch(change(PROJECT_CREATE_FORM_NAME, 'properties', properties ));
     };
 
 export const removePropertyFromCreateProjectForm = (key: string) =>
     (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
-        const properties = { ...CREATE_FORM_SELECTOR(getState(), 'properties') };
+        const properties = { ...PROJECT_CREATE_FORM_SELECTOR(getState(), 'properties') };
         delete properties[key];
         dispatch(change(PROJECT_CREATE_FORM_NAME, 'properties', properties ));
     };
\ No newline at end of file
diff --git a/src/views-components/project-properties/create-project-properties-list.tsx b/src/views-components/project-properties/create-project-properties-list.tsx
index f4f16890..1d2050fe 100644
--- a/src/views-components/project-properties/create-project-properties-list.tsx
+++ b/src/views-components/project-properties/create-project-properties-list.tsx
@@ -7,7 +7,7 @@ import { connect } from 'react-redux';
 import { Dispatch } from 'redux';
 import { withStyles, StyleRulesCallback, WithStyles, Chip } from '@material-ui/core';
 import { RootState } from '~/store/store';
-import { removePropertyFromCreateProjectForm, CREATE_FORM_SELECTOR, ProjectProperties } from '~/store/projects/project-create-actions';
+import { removePropertyFromCreateProjectForm, PROJECT_CREATE_FORM_SELECTOR, ProjectProperties } from '~/store/projects/project-create-actions';
 import { ArvadosTheme } from '~/common/custom-theme';
 
 type CssRules = 'tag';
@@ -28,7 +28,7 @@ interface CreateProjectPropertiesListActionProps {
 }
 
 const mapStateToProps = (state: RootState): CreateProjectPropertiesListDataProps => {
-    const properties = CREATE_FORM_SELECTOR(state, 'properties');
+    const properties = PROJECT_CREATE_FORM_SELECTOR(state, 'properties');
     return { properties };
 };
 

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list