1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 23:30:05 +02:00

feat(cp-frontend): show service list even when error

This commit is contained in:
Sérgio Ramos 2017-08-30 11:57:08 +01:00
parent 666a9ad1e8
commit 9b647a77eb

View File

@ -59,16 +59,12 @@ export class ServiceList extends Component {
); );
} }
if (error) { const _err = error ? (
return (
<LayoutContainer>
<ErrorMessage <ErrorMessage
title="Ooops!" title="Ooops!"
message="An error occurred while loading your services." message="An error occurred while loading your services."
/> />
</LayoutContainer> ) : null;
);
}
if ( if (
deploymentGroup && deploymentGroup &&
@ -115,9 +111,7 @@ export class ServiceList extends Component {
: ''; : '';
renderedError = ( renderedError = (
<LayoutContainer>
<ErrorMessage title="Ooops!" message={message} /> <ErrorMessage title="Ooops!" message={message} />
</LayoutContainer>
); );
} }
@ -148,6 +142,7 @@ export class ServiceList extends Component {
return ( return (
<LayoutContainer> <LayoutContainer>
{renderedError} {renderedError}
{_err}
<StyledContainer>{serviceList}</StyledContainer> <StyledContainer>{serviceList}</StyledContainer>
</LayoutContainer> </LayoutContainer>
); );