summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/nfvo-components/vnfMarketPlace/VnfRepositorySearchBox.jsx
diff options
context:
space:
mode:
authorandre.schmid <andre.schmid@est.tech>2022-01-25 19:38:32 +0000
committerMichael Morris <michael.morris@est.tech>2022-01-31 15:23:21 +0000
commit4594cba0c53461bc1a273458e0a7a314da6bfb68 (patch)
treec78010c789d726aa72ee8591ab12720b72d1c675 /openecomp-ui/src/nfvo-components/vnfMarketPlace/VnfRepositorySearchBox.jsx
parent99b7fb519806870b3c84e9e1ac0ac2f59320a6b0 (diff)
Obtain and control VSP package upload status
Obtain the upload status and control the upload from the frontend perspective. Change-Id: Idcc921cf592efea33df35c557afcfae827af3a39 Issue-ID: SDC-3862 Signed-off-by: andre.schmid <andre.schmid@est.tech>
Diffstat (limited to 'openecomp-ui/src/nfvo-components/vnfMarketPlace/VnfRepositorySearchBox.jsx')
-rw-r--r--openecomp-ui/src/nfvo-components/vnfMarketPlace/VnfRepositorySearchBox.jsx23
1 files changed, 14 insertions, 9 deletions
diff --git a/openecomp-ui/src/nfvo-components/vnfMarketPlace/VnfRepositorySearchBox.jsx b/openecomp-ui/src/nfvo-components/vnfMarketPlace/VnfRepositorySearchBox.jsx
index 2c82c2be6c..32e3a3e3f2 100644
--- a/openecomp-ui/src/nfvo-components/vnfMarketPlace/VnfRepositorySearchBox.jsx
+++ b/openecomp-ui/src/nfvo-components/vnfMarketPlace/VnfRepositorySearchBox.jsx
@@ -50,22 +50,27 @@ class VnfRepositorySearchBox extends Component {
dataTestId,
isReadOnlyMode
} = this.props;
- let showVNF = Configuration.get('showBrowseVNF');
+ const showVNF = Configuration.get('showBrowseVNF');
return (
- <div className={`${className}${isReadOnlyMode ? ' disabled' : ''}`}>
+ <div
+ className={`${className}${isReadOnlyMode ? ' disabled' : ''}${
+ showVNF ? ' showVnf' : ''
+ }`}>
<DraggableUploadFileBox
dataTestId={dataTestId}
isReadOnlyMode={isReadOnlyMode}
className={'upload'}
onClick={onClick}
/>
-
- <div className={`${'verticalLine'}${showVNF ? '' : ' hide'}`} />
-
- <VNFBrowse
- onBrowseVNF={onBrowseVNF}
- isReadOnlyMode={isReadOnlyMode}
- />
+ {showVNF && (
+ <div className={`verticalLine${showVNF ? '' : ' hide'}`} />
+ )}
+ {showVNF && (
+ <VNFBrowse
+ onBrowseVNF={onBrowseVNF}
+ isReadOnlyMode={isReadOnlyMode}
+ />
+ )}
</div>
);
}