diff options
Diffstat (limited to 'openecomp-ui/src/nfvo-components/vnfMarketPlace/VnfRepositorySearchBox.jsx')
-rw-r--r-- | openecomp-ui/src/nfvo-components/vnfMarketPlace/VnfRepositorySearchBox.jsx | 23 |
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> ); } |