Skip to content

Commit

Permalink
updated editSkuRecommendationParam button to open dialog (#24598)
Browse files Browse the repository at this point in the history
  • Loading branch information
krritik authored and stuti149 committed Oct 9, 2023
1 parent 45fce50 commit 314493d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import * as constants from '../../constants/strings';
import { MigrationStateModel, PerformanceDataSourceOptions } from '../../models/stateMachine';
import { SKURecommendationPage } from './skuRecommendationPage';
import { ImportPerformanceDataDialog } from '../../dialog/skuRecommendationResults/importPerformanceDataDialog';
import { SkuEditParametersDialog } from '../../dialog/skuRecommendationResults/skuEditParametersDialog';

// TODO - "Change this to actual default path once it is available"
const DEFAULT_PATH_FOR_START_DATA_COLLECTION = "C:\DataPointsCollectionFolder";
Expand Down Expand Up @@ -195,7 +196,11 @@ export class SkuDataCollectionToolbar implements vscode.Disposable {
...styles.TOOLBAR_CSS
}
}).component();
// TODO - implement onDidClick and add to disposables

let skuEditParametersDialog = new SkuEditParametersDialog(this.skuRecommendationPage, this.migrationStateModel);
this._disposables.push(
recommendationParametersButton.onDidClick(
async () => await skuEditParametersDialog.openDialog()));
return recommendationParametersButton;
}

Expand Down

0 comments on commit 314493d

Please sign in to comment.