Browse Source

log provisioner redirect condition

jusrhee 5 years ago
parent
commit
df710e8abb

+ 1 - 1
dashboard/src/main/home/Home.tsx

@@ -75,7 +75,7 @@ export default class Home extends Component<PropsType, StateType> {
               });
               
               console.log('infras viewdata: ', viewData);
-              if (viewData.length > 0) {
+              if (true || viewData.length > 0) {
                 console.log('setting to provisioner...');
                 this.setState({ currentView: 'provisioner', viewData});
               }

+ 2 - 1
dashboard/src/main/home/new-project/Provisioner.tsx

@@ -198,7 +198,8 @@ export default class Provisioner extends Component<PropsType, StateType> {
     }
 
     if (maxStep !== 0 && currentStep === maxStep) {
-      console.log('Provisioning complete.')
+      console.log('Thinks provisioning complete.')
+      console.log(currentStep, maxStep);
       this.props.setCurrentView('dashboard');
     }