-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overview steps UI #7273
Overview steps UI #7273
Conversation
|
<StepLabel style={{ position: 'relative' }}> | ||
<Box className={classes.box}> | ||
<Typography variant='h6'> | ||
Created |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add internationalization
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
{lifecycleState === 'Created' && ( | ||
<Box className={classes.box}> | ||
<Typography variant='h6'> | ||
Published |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here as well... i18n
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
<StepLabel style={{ position: 'relative' }} > | ||
<Box p={2} bgcolor='white' width='377px' borderColor='grey.500' borderLeft='0' borderRight='0' > | ||
<Typography variant='h10'> | ||
Requirements |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add i18n
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
<CloseIcon className={classes.iconFalse} /> | ||
)} | ||
|
||
<Typography variant='caption'>Endpoint</Typography> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be Endpoints. Add i18n as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be Endpoint. In order to satisfy the basic requirement you only need to provide one endpoint.
Added i18n.
) : ( | ||
<CloseIcon className={classes.iconFalse} /> | ||
)} | ||
<Typography variant='caption'>Business plans</Typography> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add i18n
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
{lifecycleState === 'Published' && ( | ||
<Box bgcolor='primary.main' p={2} m={2} border={1}> | ||
<Typography variant='h6'> | ||
Published |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add i18n
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
c1b623f
to
85f5c7b
Compare
4f07fc0
to
d177e0b
Compare
*/ | ||
function updateLCStateOfAPI() { | ||
setUpdating(true); | ||
const promisedUpdate = restApi.updateLcState(api.id, 'Publish'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we use api.publish()
the method instead of calling REST api directly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
console.log(errorResponse); | ||
Alert.error(JSON.stringify(errorResponse.message)); | ||
}) | ||
.finally(() => setUpdating(false)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we move this final call to updateAPI()
promise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
This PR includes the step for API creation in the Overview page.