|
|
@@ -15,7 +15,8 @@ import { inflateRaw, inflateRawSync } from 'zlib';
|
|
|
type PropsType = {
|
|
|
viewData: any,
|
|
|
setCurrentView: (x: string) => void,
|
|
|
-};
|
|
|
+ setRefreshClusters: (x: boolean) => void,
|
|
|
+}
|
|
|
|
|
|
type StateType = {
|
|
|
error: boolean,
|
|
|
@@ -148,7 +149,7 @@ export default class Provisioner extends Component<PropsType, StateType> {
|
|
|
|
|
|
renderLogs = () => {
|
|
|
return this.state.logs.map((log, i) => {
|
|
|
- return <div key={i}>{log}</div>
|
|
|
+ return <Log key={i}>{log}</Log>
|
|
|
});
|
|
|
}
|
|
|
|
|
|
@@ -200,6 +201,7 @@ export default class Provisioner extends Component<PropsType, StateType> {
|
|
|
if (maxStep !== 0 && currentStep === maxStep) {
|
|
|
console.log('Thinks provisioning complete.')
|
|
|
console.log(currentStep, maxStep);
|
|
|
+ this.props.setRefreshClusters(true);
|
|
|
this.props.setCurrentView('dashboard');
|
|
|
}
|
|
|
|
|
|
@@ -246,6 +248,10 @@ const Wrapper = styled.div`
|
|
|
padding: 20px 25px;
|
|
|
`;
|
|
|
|
|
|
+const Log = styled.div`
|
|
|
+ font-family: monospace;
|
|
|
+`;
|
|
|
+
|
|
|
const LogStream = styled.div`
|
|
|
height: 300px;
|
|
|
margin-top: 30px;
|