mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
small optimization for select (#12419)
This commit is contained in:
@@ -6,6 +6,7 @@ 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, ToolStatus } from '../interfaces';
|
import { AgreementInfo, DeploymentProvider, ITool, ResourceType, ToolStatus } from '../interfaces';
|
||||||
|
import { select } from '../localizedConstants';
|
||||||
import { IResourceTypeService } from '../services/resourceTypeService';
|
import { IResourceTypeService } from '../services/resourceTypeService';
|
||||||
import { IToolsService } from '../services/toolsService';
|
import { IToolsService } from '../services/toolsService';
|
||||||
import { getErrorMessage } from '../utils';
|
import { getErrorMessage } from '../utils';
|
||||||
@@ -186,12 +187,7 @@ export class ResourceTypePickerDialog extends DialogBase {
|
|||||||
private selectResourceType(resourceType: ResourceType): void {
|
private selectResourceType(resourceType: ResourceType): void {
|
||||||
this._selectedResourceType = resourceType;
|
this._selectedResourceType = resourceType;
|
||||||
//handle special case when resource type has different OK button.
|
//handle special case when resource type has different OK button.
|
||||||
if (this._selectedResourceType.okButtonText) {
|
this._dialogObject.okButton.label = this._selectedResourceType.okButtonText || select;
|
||||||
this._dialogObject.okButton.label = this._selectedResourceType.okButtonText;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
this._dialogObject.okButton.label = localize('deploymentDialog.OKButtonText', "Select");
|
|
||||||
}
|
|
||||||
|
|
||||||
this._agreementCheckboxChecked = false;
|
this._agreementCheckboxChecked = false;
|
||||||
this._agreementContainer.clearItems();
|
this._agreementContainer.clearItems();
|
||||||
|
|||||||
Reference in New Issue
Block a user