mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-23 09:35:39 -05:00
Adding Derived Columns to ADS Flatfile Import (#16795)
* Adding derived column boilerplate * brandan preliminary frontend changes * empty commit * added new param * updating contracts, dialogue changes * utils changes, saving timeout attempt * pushing for aasim * Cleaning up code and fixing the issue in theory * changing button, did not solve independent scroll * Fixing the scroll bar issue * updating flat file service * adding override keyword to overrriden method * improving UI * pushing changes associated with resolved comments * localizing strings, editing comments * all comments resolved * Fixing a test * updating import package Updating azure MFA bug * Clearing navigation validator Fixing broken table name change * fixed prose test * removing unused code from tests * Fixed PR comments * Fixing some PR comments * WIP * Fixing transformation code and create derived column dialog styling * removing unused code * Adding comment for console log * fixed table styling * Adding some aria labels * Fixed some code cleanup issues * update import service Co-authored-by: Aasim Khan <aasimkhan30@gmail.com> Co-authored-by: bnhoule <t-bhoule@microsoft.com>
This commit is contained in:
@@ -23,6 +23,7 @@ export class FlatFileWizard {
|
||||
public page3: azdata.window.WizardPage;
|
||||
public page4: azdata.window.WizardPage;
|
||||
|
||||
public createDerivedColumnButton: azdata.window.Button;
|
||||
private importAnotherFileButton: azdata.window.Button;
|
||||
|
||||
constructor(
|
||||
@@ -89,6 +90,8 @@ export class FlatFileWizard {
|
||||
await summaryPage.start();
|
||||
});
|
||||
|
||||
this.createDerivedColumnButton = azdata.window.createButton(constants.createDerivedColumn);
|
||||
this.createDerivedColumnButton.hidden = true;
|
||||
|
||||
this.importAnotherFileButton = azdata.window.createButton(constants.importNewFileText);
|
||||
this.importAnotherFileButton.onClick(() => {
|
||||
@@ -99,7 +102,7 @@ export class FlatFileWizard {
|
||||
});
|
||||
|
||||
this.importAnotherFileButton.hidden = true;
|
||||
this.wizard.customButtons = [this.importAnotherFileButton];
|
||||
this.wizard.customButtons = [this.importAnotherFileButton, this.createDerivedColumnButton];
|
||||
this.wizard.onPageChanged(async (event) => {
|
||||
let newPageIdx = event.newPage;
|
||||
let lastPageIdx = event.lastPage;
|
||||
|
||||
Reference in New Issue
Block a user