mirror of
https://github.com/yldio/copilot.git
synced 2024-12-29 05:10:05 +02:00
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 _error = !error ? null : <span>{error.toString()}</span>;
|
||||
|
||||
const _view = (loading || !deploymentGroup)
|
||||
const _view = loading || !deploymentGroup
|
||||
? null
|
||||
: <DeploymentGroupEditOrCreate
|
||||
edit
|
||||
@ -27,11 +27,23 @@ const Manifest = ({
|
||||
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 (
|
||||
<LayoutContainer>
|
||||
<H2>Edit Manifest</H2>
|
||||
{_error}
|
||||
{_loading}
|
||||
{_notice}
|
||||
{_view}
|
||||
</LayoutContainer>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user