select cluster page and status update for tool when installing (#4251)

This commit is contained in:
Alan Ren
2019-03-01 11:12:57 -08:00
committed by GitHub
parent 8e52ffa30e
commit dad807d62d
7 changed files with 122 additions and 115 deletions

View File

@@ -102,9 +102,10 @@ export class CreateClusterModel implements Scriptable {
return promise;
}
public installTools(): Thenable<void> {
public installTool(tool: ToolInfo): Thenable<void> {
let promise = new Promise<void>(resolve => {
setTimeout(() => {
tool.status = ToolInstallationStatus.Installed;
this._tmp_tools_installed = true;
resolve();
}, 2000);