From 091edfdac90f66d91caff1b93131f99ba74f9aeb Mon Sep 17 00:00:00 2001
From: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
Date: Mon, 19 Mar 2018 12:15:19 +0200
Subject: ui support for archive items

Issue-ID: SDC-1088
Change-Id: I836e4896a8ec6bb065f9d2571f514916ccf6759f
Signed-off-by: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
---
 .../attachments/SoftwareProductAttachmentsView.jsx  | 21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)

(limited to 'openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/SoftwareProductAttachmentsView.jsx')

diff --git a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/SoftwareProductAttachmentsView.jsx b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/SoftwareProductAttachmentsView.jsx
index 4ced98f314..2a849f376e 100644
--- a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/SoftwareProductAttachmentsView.jsx
+++ b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/SoftwareProductAttachmentsView.jsx
@@ -31,8 +31,8 @@ class HeatScreenView extends Component {
 		setActiveTab: PropTypes.func
 	};
 
-	componentDidMount() {		
-		 if (!this.props.goToOverview && this.props.candidateInProcess) {			
+	componentDidMount() {
+		 if (!this.props.goToOverview && this.props.candidateInProcess) {
 			this.props.setActiveTab({activeTab: tabsMapping.VALIDATION});
 		 }
 	}
@@ -49,9 +49,9 @@ class HeatScreenView extends Component {
 							data-test-id='proceed-to-validation-btn'
 							disabled={!isValidationAvailable} 
 							className='proceed-to-validation-btn'
-							onClick={()=>this.validate()}>{i18n('PROCEED TO VALIDATION')}</Button>					
-					}		
-					{candidateInProcess && <SVGIcon							
+							onClick={()=>this.validate()}>{i18n('PROCEED TO VALIDATION')}</Button>
+					}
+					{candidateInProcess && <SVGIcon
 						onClick={onUploadAbort}
 						name='close'
 						className='icon-component abort-btn'
@@ -59,26 +59,24 @@ class HeatScreenView extends Component {
 						labelPosition='right'
 						color='secondary'
 						data-test-id='abort-btn'/>
-					}	
-					
+					}
 					{(activeTab === tabsMapping.VALIDATION && softwareProductId) &&
 						<Button btnType='outline' 
 							data-test-id='go-to-overview'
 							disabled={this.props.goToOverview !== true}
 							className='go-to-overview-btn'
 							onClick={this.props.goToOverview ? () => onGoToOverview({version}) : undefined}>{i18n('GO TO OVERVIEW')}</Button>}						
-					<div className='separator'></div>		
+					<div className='separator'></div>
 					<SVGIcon
 						disabled={heatDataExist ? false : true}
 						name='download'
-						className='icon-component'														
+						className='icon-component'
 						color='dark-gray'
 						onClick={heatDataExist ? () => onDownload({heatCandidate: heatSetup, isReadOnlyMode: isReadOnlyMode || !candidateInProcess, version}) : undefined}
 						data-test-id='download-heat'/>
-
 					<SVGIcon
 						name='upload'
-						className='icon-component'						
+						className='icon-component'
 						color='dark-gray'
 						disabled={isReadOnlyMode || candidateInProcess}
 						onClick={isReadOnlyMode ? undefined : evt => this.refs.hiddenImportFileInput.click(evt)}
@@ -144,7 +142,6 @@ class HeatScreenView extends Component {
 		);
 	}
 	save() {
-
 		return this.props.onboardingOrigin === onboardingOriginTypes.ZIP ?
 			this.props.onSave(this.props.heatSetup, this.props.version) :
 			Promise.resolve();
-- 
cgit 1.2.3-korg

