validation btn & validation screen fix 99/44099/2
authorsvishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
Mon, 23 Apr 2018 07:10:51 +0000 (10:10 +0300)
committerEinav Keidar <einavw@amdocs.com>
Mon, 23 Apr 2018 09:08:50 +0000 (09:08 +0000)
Issue-ID: SDC-1237
Change-Id: I032476dd47817febb449c51ce8e46db8f3d395be
Signed-off-by: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
openecomp-ui/src/nfvo-components/input/validation/ValidationButtons.jsx
openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/SoftwareProductAttachmentsView.jsx

index 9530b65..5509896 100644 (file)
@@ -64,6 +64,7 @@ class ValidationButtons extends React.Component {
                         <Button
                             type="submit"
                             btnType="primary"
+                            size="default"
                             data-test-id="form-submit-button"
                             disabled={!this.state.isValid}>
                             {submitBtn}
index 814f9b3..2b4d557 100644 (file)
@@ -152,14 +152,21 @@ class HeatScreenView extends Component {
                             }
                             onProcessAndValidate={onProcessAndValidate}
                             softwareProductId={softwareProductId}
-                            isReadOnlyMode={isReadOnlyMode}
+                            isReadOnlyMode={
+                                isReadOnlyMode ||
+                                (candidateInProcess && !goToOverview) ||
+                                !candidateInProcess
+                            }
                             version={version}
                         />
                     </Tab>
                     <Tab
                         tabId={tabsMapping.VALIDATION}
                         title="Validation"
-                        disabled={!isValidationAvailable || candidateInProcess}>
+                        disabled={
+                            goToOverview &&
+                            (!isValidationAvailable || candidateInProcess)
+                        }>
                         <HeatValidation {...other} />
                     </Tab>
                 </Tabs>