-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to ISV view in UI to show current status of the service template
- Loading branch information
1 parent
d34bfb5
commit ce97006
Showing
13 changed files
with
1,328 additions
and
1,047 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
src/components/content/catalog/services/details/ServiceTemplateDetails.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { EnvironmentOutlined } from '@ant-design/icons'; | ||
import { Card } from 'antd'; | ||
import React from 'react'; | ||
import catalogStyles from '../../../../../styles/catalog.module.css'; | ||
import { ServiceTemplateDetailVo } from '../../../../../xpanse-api/generated'; | ||
import { ServicePolicies } from '../policies/ServicePolicies'; | ||
import { ServiceHostingOptions } from './ServiceHostingOptions'; | ||
import ServiceTemplateBasicDetail from './ServiceTemplateBasicDetail'; | ||
|
||
function serviceTemplateDetails({ | ||
isViewDisabled, | ||
serviceDetails, | ||
groupServiceTemplatesByCsp, | ||
serviceCspInQuery, | ||
serviceHostingTypeInQuery, | ||
onChangeServiceHostingType, | ||
}: { | ||
isViewDisabled: boolean; | ||
serviceDetails: ServiceTemplateDetailVo; | ||
groupServiceTemplatesByCsp: Map<string, ServiceTemplateDetailVo[]>; | ||
serviceCspInQuery: string; | ||
serviceHostingTypeInQuery: string; | ||
onChangeServiceHostingType: (serviceTemplateDetailVo: ServiceTemplateDetailVo) => void; | ||
}): React.JSX.Element { | ||
return ( | ||
<> | ||
<Card className={catalogStyles.serviceTemplateCard}> | ||
<div className={catalogStyles.catalogDetailsH3}> | ||
<EnvironmentOutlined /> | ||
Service Hosting Options | ||
</div> | ||
<ServiceHostingOptions | ||
serviceTemplateDetailVos={groupServiceTemplatesByCsp.get(serviceCspInQuery) ?? []} | ||
defaultDisplayedService={serviceDetails} | ||
serviceHostingTypeInQuery={serviceHostingTypeInQuery} | ||
updateServiceHostingType={onChangeServiceHostingType} | ||
/> | ||
<ServiceTemplateBasicDetail serviceDetails={serviceDetails} /> | ||
<ServicePolicies | ||
key={serviceDetails.serviceTemplateId} | ||
serviceDetails={serviceDetails} | ||
isViewDisabled={isViewDisabled} | ||
/> | ||
</Card> | ||
</> | ||
); | ||
} | ||
export default serviceTemplateDetails; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.