mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
onComplete -> onLeave for toolsAndEulaPage (#13394)
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
import * as azdata from 'azdata';
|
import * as azdata from 'azdata';
|
||||||
import { EOL } from 'os';
|
import { EOL } from 'os';
|
||||||
import * as nls from 'vscode-nls';
|
import * as nls from 'vscode-nls';
|
||||||
import { AgreementInfo, DeploymentProvider, ITool, ResourceType, ResourceTypeOptionValue, ToolStatus } from '../interfaces';
|
import { AgreementInfo, DeploymentProvider, ITool, ResourceType, ResourceTypeOptionValue, ToolRequirementInfo, ToolStatus } from '../interfaces';
|
||||||
import { createFlexContainer } from './modelViewUtils';
|
import { createFlexContainer } from './modelViewUtils';
|
||||||
import * as loc from '../localizedConstants';
|
import * as loc from '../localizedConstants';
|
||||||
import { IToolsService } from '../services/toolsService';
|
import { IToolsService } from '../services/toolsService';
|
||||||
@@ -358,9 +358,9 @@ export class ToolsAndEulaPage extends ResourceTypePage {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param enable - if true the UiControls are set to be enabled, if not they are set to be disabled.
|
* @param enable - if true the UiControls are set to be enabled, if not they are set to be disabled.
|
||||||
*/
|
*/
|
||||||
private setUiControlsEnabled(enable: boolean): void {
|
private setUiControlsEnabled(enable: boolean): void {
|
||||||
this._agreementContainer.enabled = enable;
|
this._agreementContainer.enabled = enable;
|
||||||
this._optionsContainer.enabled = enable;
|
this._optionsContainer.enabled = enable;
|
||||||
@@ -368,8 +368,7 @@ export class ToolsAndEulaPage extends ResourceTypePage {
|
|||||||
// select and install tools buttons are controlled separately
|
// select and install tools buttons are controlled separately
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async onLeave(): Promise<void> {
|
||||||
protected async onComplete(): Promise<void> {
|
|
||||||
this.toolsService.toolsForCurrentProvider = this._tools;
|
this.toolsService.toolsForCurrentProvider = this._tools;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -388,7 +387,7 @@ export class ToolsAndEulaPage extends ResourceTypePage {
|
|||||||
return this._eulaValidationSucceeded;
|
return this._eulaValidationSucceeded;
|
||||||
}
|
}
|
||||||
|
|
||||||
private get toolRequirements() {
|
private get toolRequirements(): ToolRequirementInfo[] {
|
||||||
return this.wizard.provider.requiredTools;
|
return this.wizard.provider.requiredTools;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user