1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-01 07:30:07 +02:00

feat(cp-frontend): add manifest notice for imported DG

This commit is contained in:
Sérgio Ramos 2017-06-27 19:42:18 +01:00 committed by Judit Greskovits
parent cb908d33e5
commit e8f05282fa

View File

@ -19,7 +19,7 @@ const Manifest = ({
const _loading = !loading ? null : <DeploymentGroupsLoading />; const _loading = !loading ? null : <DeploymentGroupsLoading />;
const _error = !error ? null : <span>{error.toString()}</span>; const _error = !error ? null : <span>{error.toString()}</span>;
const _view = (loading || !deploymentGroup) const _view = loading || !deploymentGroup
? null ? null
: <DeploymentGroupEditOrCreate : <DeploymentGroupEditOrCreate
edit edit
@ -27,11 +27,23 @@ const Manifest = ({
deploymentGroup={deploymentGroup} deploymentGroup={deploymentGroup}
/>; />;
const _notice = !err &&
!loading &&
deploymentGroup &&
deploymentGroup.imported &&
!manifest
? null
: <span>
Since this DeploymentGroup was imported, it doesn't have the initial
manifest
</span>;
return ( return (
<LayoutContainer> <LayoutContainer>
<H2>Edit Manifest</H2> <H2>Edit Manifest</H2>
{_error} {_error}
{_loading} {_loading}
{_notice}
{_view} {_view}
</LayoutContainer> </LayoutContainer>
); );