mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Port 807a4ae8c4 (#12747)
This commit is contained in:
@@ -119,6 +119,7 @@ export interface WizardInfoBase extends FieldInfoBase {
|
||||
type?: DeploymentType;
|
||||
actionText?: string;
|
||||
title: string;
|
||||
name?: string;
|
||||
pages: PageInfoBase[];
|
||||
isSummaryPageAutoGenerated?: boolean
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user