mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 17:22:55 -05:00
Fix schema compare include/exclude behavior (#8042)
* don't uncheck difference if unsuccessful * changes after rebasing to get schema compare fix * First cut of column checkbox checking reactive to include opteration * handle blocking dependencies and affected dependencies * Changing the checked property of table to be list * Addressing comments * add map to keep row number of diff entries * remove findDifferenceRow() since it isn't needed anymore * fix scrolling to the top when checking/unchecking and add info message * change checked to updateCells * improve warning cannot include/exclude message
This commit is contained in:
@@ -189,7 +189,24 @@ export class CheckboxSelectColumn<T extends Slick.SlickData> implements Slick.Pl
|
||||
}
|
||||
|
||||
//Ensure that the focus stays correct
|
||||
this._grid.getActiveCellNode().focus();
|
||||
if(this._grid.getActiveCellNode()) {
|
||||
this._grid.getActiveCellNode().focus();
|
||||
}
|
||||
|
||||
// set selected row to the row of this checkbox
|
||||
this._grid.setSelectedRows([row]);
|
||||
}
|
||||
|
||||
// This call is to handle reactive changes in check box UI
|
||||
// This DOES NOT fire UI change Events
|
||||
reactiveCheckboxCheck(row: number, value: boolean) {
|
||||
value ? this._selectedCheckBoxLookup[row] = true : delete this._selectedCheckBoxLookup[row];
|
||||
|
||||
// update row to call formatter
|
||||
this._grid.updateRow(row);
|
||||
|
||||
// ensure that grid reflects the change
|
||||
this._grid.scrollRowIntoView(row);
|
||||
}
|
||||
|
||||
private handleHeaderClick(e: Event, args: Slick.OnHeaderClickEventArgs<T>): void {
|
||||
|
||||
Reference in New Issue
Block a user