From 6fe1ac1c577a192b0b8a08a8cddb4c7546d165e8 Mon Sep 17 00:00:00 2001 From: Deepak Jain Date: Thu, 6 May 2021 12:57:04 +0530 Subject: [PATCH] INFRA-730| Deepak Jain| adding new teams --- src/coreform/BaseForm.tsx | 2 +- src/coreform/ManifestForm.tsx | 10 +++++++--- src/models/Manifest.ts | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/coreform/BaseForm.tsx b/src/coreform/BaseForm.tsx index 77296fc..916b799 100644 --- a/src/coreform/BaseForm.tsx +++ b/src/coreform/BaseForm.tsx @@ -122,7 +122,7 @@ const BaseForm = (props: BaseFormProps) => { { props => (
- +
{ const classes = useStyles(); - const [id] = React.useState(props.id); + const id = props.manifest.id; + const team = props.manifest.team.name; + let teams: string[] = _m.teams; + if (!(team in _m.teams) && team != "") { + teams = [..._m.teams, team] + } const disableNameAndEnvironment = id !== undefined; return ( @@ -36,7 +40,7 @@ const ManifestForm = (props: any) => { {toMenuItems(environments)} - {toMenuItems(_m.teams)} + {toMenuItems(teams)} diff --git a/src/models/Manifest.ts b/src/models/Manifest.ts index 6908395..809c8c4 100644 --- a/src/models/Manifest.ts +++ b/src/models/Manifest.ts @@ -23,7 +23,7 @@ export const namespaces = { } export const teams = { - lending: ['Accounting', 'LoanManagement', 'LoanOrigination', 'Camunda', 'Kafka', 'Infra', 'DataPlatform', 'DataScience'], + lending: ['Infra', 'DataPlatform', 'DataScience', 'PLOrigination', 'HLOrigination', 'UnderwritingAndFraudDetection', 'OpsTech','CBP'], gi: ['GI'], }[window.config.INFRA_VERTICAL]