Added portal link for Azure SQL (#12425)

This commit is contained in:
Aasim Khan
2020-09-17 17:37:41 -07:00
committed by GitHub
parent 7ad9da7fda
commit b158180ef4
5 changed files with 57 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ export interface ResourceType {
agreement?: AgreementInfo;
displayIndex?: number;
getProvider(selectedOptions: { option: string, value: string }[]): DeploymentProvider | undefined;
okButtonText?: string;
}
export interface AgreementInfo {

View File

@@ -182,6 +182,15 @@ export class ResourceTypePickerDialog extends DialogBase {
private selectResourceType(resourceType: ResourceType): void {
this._selectedResourceType = resourceType;
//handle special case when resource type has different OK button.
if (this._selectedResourceType.okButtonText) {
this._dialogObject.okButton.label = this._selectedResourceType.okButtonText;
}
else {
this._dialogObject.okButton.label = localize('deploymentDialog.OKButtonText', "Select");
}
this._agreementCheckboxChecked = false;
this._agreementContainer.clearItems();
if (resourceType.agreement) {