feat(cp-frontend): add manifest notice for imported DG
This commit is contained in:
parent
cb908d33e5
commit
e8f05282fa
@ -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>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user