Portal links for main branch (#12319)

* first commit

* json field added

* message genericized

* order changed

* removed summary page text

* fixed url
This commit is contained in:
Alex Ma
2020-09-15 14:41:10 -07:00
committed by GitHub
parent caeb33248e
commit 92ed830564
5 changed files with 109 additions and 1 deletions

View File

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

View File

@@ -176,6 +176,14 @@ 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) {