summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments
diff options
context:
space:
mode:
authorsvishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>2018-03-19 12:15:19 +0200
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-03-20 07:51:05 +0000
commit091edfdac90f66d91caff1b93131f99ba74f9aeb (patch)
treea6a24fc4a295b7f804aeb2a2211e58b38bbf922a /openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments
parentfefa3e408f77289594e47edc878d1bee61fca90b (diff)
ui support for archive items
Issue-ID: SDC-1088 Change-Id: I836e4896a8ec6bb065f9d2571f514916ccf6759f Signed-off-by: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
Diffstat (limited to 'openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments')
-rw-r--r--openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/SoftwareProductAttachmentsView.jsx21
1 files changed, 9 insertions, 12 deletions
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();