This commit is contained in:
Charles Gagnon
2020-10-06 13:41:27 -07:00
committed by GitHub
parent 35957cc283
commit ac6ef2639f
17 changed files with 37 additions and 43 deletions

View File

@@ -119,6 +119,7 @@ export interface WizardInfoBase extends FieldInfoBase {
type?: DeploymentType;
actionText?: string;
title: string;
name?: string;
pages: PageInfoBase[];
isSummaryPageAutoGenerated?: boolean
}

View File

@@ -58,7 +58,7 @@ export class DeployClusterWizard extends WizardBase<DeployClusterWizard, WizardP
}
constructor(private wizardInfo: BdcWizardInfo, private _kubeService: IKubeService, private _azdataService: IAzdataService, private _notebookService: INotebookService, toolsService: IToolsService) {
super(DeployClusterWizard.getTitle(wizardInfo.type), new DeployClusterWizardModel(wizardInfo.type), toolsService);
super(DeployClusterWizard.getTitle(wizardInfo.type), 'DeployBdcClusterWizard', new DeployClusterWizardModel(wizardInfo.type), toolsService);
this._saveConfigButton = azdata.window.createButton(localize('deployCluster.SaveConfigFiles', "Save config files"), 'left');
this._saveConfigButton.hidden = true;
this.addButton(this._saveConfigButton);

View File

@@ -36,7 +36,7 @@ export class NotebookWizard extends WizardBase<NotebookWizard, NotebookWizardPag
}
constructor(private _wizardInfo: NotebookWizardInfo, private _notebookService: INotebookService, private _platformService: IPlatformService, toolsService: IToolsService) {
super(_wizardInfo.title, new Model(), toolsService);
super(_wizardInfo.title, _wizardInfo.name || '', new Model(), toolsService);
if (this._wizardInfo.codeCellInsertionPosition === undefined) {
this._wizardInfo.codeCellInsertionPosition = 0;
}

View File

@@ -21,8 +21,8 @@ export abstract class WizardBase<T, P extends WizardPageBase<T>, M extends Model
return this._model;
}
constructor(private title: string, private _model: M, public toolsService: IToolsService) {
this.wizardObject = azdata.window.createWizard(title);
constructor(private title: string, name: string, private _model: M, public toolsService: IToolsService) {
this.wizardObject = azdata.window.createWizard(title, name);
}
public async open(): Promise<void> {