summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/sdc-app
diff options
context:
space:
mode:
authorsvishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>2018-07-17 10:37:38 +0300
committerEinav Keidar <einavw@amdocs.com>2018-07-18 05:34:45 +0000
commit71782cf5739a46034161176c14b3489b66464298 (patch)
tree157b86186b7c5935246f860724b1478c26aa33b8 /openecomp-ui/src/sdc-app
parent4884584a187fe9787cc1d5b3960fec6c3b0d67d7 (diff)
ui loop fix
Issue-ID: SDC-1525 Change-Id: I09cf3751881c49361315b2c80c91e7402872c8a4 Signed-off-by: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
Diffstat (limited to 'openecomp-ui/src/sdc-app')
-rw-r--r--openecomp-ui/src/sdc-app/onboarding/Onboarding.js9
-rw-r--r--openecomp-ui/src/sdc-app/onboarding/OnboardingView.jsx11
2 files changed, 12 insertions, 8 deletions
diff --git a/openecomp-ui/src/sdc-app/onboarding/Onboarding.js b/openecomp-ui/src/sdc-app/onboarding/Onboarding.js
index b894e3f031..fbeda31126 100644
--- a/openecomp-ui/src/sdc-app/onboarding/Onboarding.js
+++ b/openecomp-ui/src/sdc-app/onboarding/Onboarding.js
@@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -17,6 +17,9 @@
import OnboardingView from './OnboardingView.jsx';
import { connect } from 'react-redux';
-const mapStateToProps = ({ currentScreen }) => ({ currentScreen });
+const mapStateToProps = ({ currentScreen, loader: { isLoading } }) => ({
+ currentScreen,
+ isLoading
+});
const Onboarding = connect(mapStateToProps, null)(OnboardingView);
export default Onboarding;
diff --git a/openecomp-ui/src/sdc-app/onboarding/OnboardingView.jsx b/openecomp-ui/src/sdc-app/onboarding/OnboardingView.jsx
index 69e514bc6e..7156e2e253 100644
--- a/openecomp-ui/src/sdc-app/onboarding/OnboardingView.jsx
+++ b/openecomp-ui/src/sdc-app/onboarding/OnboardingView.jsx
@@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -74,11 +74,12 @@ export default class OnboardingView extends React.Component {
}
render() {
- let { currentScreen } = this.props;
+ let { currentScreen, isLoading } = this.props;
let { screen, props } = currentScreen;
-
+ const preventClicks = isLoading ? 'no-pointer-events' : '';
return (
- <div className="dox-ui dox-ui-punch-out dox-ui-punch-out-full-page">
+ <div
+ className={`dox-ui dox-ui-punch-out dox-ui-punch-out-full-page ${preventClicks}`}>
{(() => {
switch (screen) {
case enums.SCREEN.ONBOARDING_CATALOG: