[ARVADOS-WORKBENCH2] updated: 1.3.0-134-g7afc443a

Git user git at public.curoverse.com
Fri Dec 21 05:17:50 EST 2018


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

       via  7afc443a21879751d8afd8ec36a3ae993d98b85a (commit)
      from  467d932e354ea551cbff134ac50723bd56cea68d (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 7afc443a21879751d8afd8ec36a3ae993d98b85a
Author: Janicki Artur <artur.janicki at contractors.roche.com>
Date:   Fri Dec 21 11:13:55 2018 +0100

    remove unnecessary import and add interface for properties
    
    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 613e828d..51ac3d3b 100644
--- a/src/store/projects/project-create-actions.ts
+++ b/src/store/projects/project-create-actions.ts
@@ -3,7 +3,7 @@
 // SPDX-License-Identifier: AGPL-3.0
 
 import { Dispatch } from "redux";
-import { reset, startSubmit, stopSubmit, initialize, FormErrors, formValueSelector, change, arrayPush } from 'redux-form';
+import { reset, startSubmit, stopSubmit, initialize, FormErrors, formValueSelector, change } from 'redux-form';
 import { RootState } from '~/store/store';
 import { dialogActions } from "~/store/dialog/dialog-actions";
 import { getCommonResourceServiceError, CommonResourceServiceError } from '~/services/common-service/common-resource-service';
@@ -16,7 +16,11 @@ export interface ProjectCreateFormDialogData {
     ownerUuid: string;
     name: string;
     description: string;
-    properties: { [key: string]: string };
+    properties: ProjectProperties;
+}
+
+export interface ProjectProperties {
+    [key: string]: string;
 }
 
 export const PROJECT_CREATE_FORM_NAME = 'projectCreateFormName';
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 41003adc..f4f16890 100644
--- a/src/views-components/project-properties/create-project-properties-list.tsx
+++ b/src/views-components/project-properties/create-project-properties-list.tsx
@@ -5,10 +5,9 @@
 import * as React from 'react';
 import { connect } from 'react-redux';
 import { Dispatch } from 'redux';
-import { formValueSelector } from 'redux-form';
 import { withStyles, StyleRulesCallback, WithStyles, Chip } from '@material-ui/core';
 import { RootState } from '~/store/store';
-import { removePropertyFromCreateProjectForm, CREATE_FORM_SELECTOR } from '~/store/projects/project-create-actions';
+import { removePropertyFromCreateProjectForm, CREATE_FORM_SELECTOR, ProjectProperties } from '~/store/projects/project-create-actions';
 import { ArvadosTheme } from '~/common/custom-theme';
 
 type CssRules = 'tag';
@@ -21,7 +20,7 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
 });
 
 interface CreateProjectPropertiesListDataProps {
-    properties: { [key: string]: string };
+    properties: ProjectProperties;
 }
 
 interface CreateProjectPropertiesListActionProps {

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list