mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-14 18:46:34 -05:00
Add telemetry for ModelView wizards (#12596)
* Add telemetry for ModelView wizards * Remove unnecessary params * Fix compile error
This commit is contained in:
@@ -28,6 +28,7 @@ export class DeployAzureSQLVMWizard extends WizardBase<DeployAzureSQLVMWizard, W
|
||||
constructor(private wizardInfo: AzureSQLVMWizardInfo, private _notebookService: INotebookService, private _toolsService: IToolsService) {
|
||||
super(
|
||||
constants.WizardTitle,
|
||||
'DeployAzureSqlVMWizard',
|
||||
new DeployAzureSQLVMWizardModel(),
|
||||
_toolsService
|
||||
);
|
||||
|
||||
@@ -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