From e8f05282fadf190797a1df5c90b72653ac6b27e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Tue, 27 Jun 2017 19:42:18 +0100 Subject: [PATCH] feat(cp-frontend): add manifest notice for imported DG --- .../src/containers/deployment-groups/manifest.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/cp-frontend/src/containers/deployment-groups/manifest.js b/packages/cp-frontend/src/containers/deployment-groups/manifest.js index c4edeb91..33a148ba 100644 --- a/packages/cp-frontend/src/containers/deployment-groups/manifest.js +++ b/packages/cp-frontend/src/containers/deployment-groups/manifest.js @@ -19,7 +19,7 @@ const Manifest = ({ const _loading = !loading ? null : ; const _error = !error ? null : {error.toString()}; - const _view = (loading || !deploymentGroup) + const _view = loading || !deploymentGroup ? null : ; + const _notice = !err && + !loading && + deploymentGroup && + deploymentGroup.imported && + !manifest + ? null + : + Since this DeploymentGroup was imported, it doesn't have the initial + manifest + ; + return (

Edit Manifest

{_error} {_loading} + {_notice} {_view}
);