-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add retry option to deployed services
- Loading branch information
1 parent
5e8f03e
commit 21b7258
Showing
8 changed files
with
411 additions
and
6 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
54 changes: 54 additions & 0 deletions
54
src/components/content/order/common/ScaleOrModifySubmitResult.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,54 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* SPDX-FileCopyrightText: Huawei Inc. | ||
*/ | ||
|
||
import { Alert } from 'antd'; | ||
import React from 'react'; | ||
import { StopwatchResult } from 'react-timer-hook'; | ||
import submitAlertStyles from '../../../../styles/submit-alert.module.css'; | ||
import { ServiceProviderContactDetails } from '../../../../xpanse-api/generated'; | ||
import { ContactDetailsShowType } from '../../common/ocl/ContactDetailsShowType'; | ||
import { ContactDetailsText } from '../../common/ocl/ContactDetailsText'; | ||
import DeploymentTimerNew from '../orderStatus/DeploymentTimer'; | ||
import OrderSubmitResultDetails from '../orderStatus/OrderSubmitResultDetails'; | ||
export const ScaleOrModifySubmitResult = ({ | ||
msg, | ||
uuid, | ||
type, | ||
stopWatch, | ||
contactServiceDetails, | ||
}: { | ||
msg: string | React.JSX.Element; | ||
uuid: string; | ||
type: 'success' | 'error'; | ||
stopWatch: StopwatchResult; | ||
contactServiceDetails: ServiceProviderContactDetails | undefined; | ||
}): React.JSX.Element => { | ||
return ( | ||
<div className={submitAlertStyles.submitAlertTip}> | ||
{' '} | ||
<Alert | ||
message={`Processing Status`} | ||
description={<OrderSubmitResultDetails msg={msg} uuid={uuid} />} | ||
showIcon | ||
closable={true} | ||
type={type} | ||
action={ | ||
<> | ||
{contactServiceDetails !== undefined ? ( | ||
<ContactDetailsText | ||
serviceProviderContactDetails={contactServiceDetails} | ||
showFor={ContactDetailsShowType.Order} | ||
/> | ||
) : ( | ||
<></> | ||
)} | ||
|
||
<DeploymentTimerNew stopWatch={stopWatch} /> | ||
</> | ||
} | ||
/>{' '} | ||
</div> | ||
); | ||
}; |
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
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.