mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Added check for the last null row (#8764)
This commit is contained in:
@@ -391,7 +391,7 @@ export abstract class GridParentComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let rowIndex = grid.getCellFromEvent(event).row;
|
let rowIndex = grid.getCellFromEvent(event).row;
|
||||||
|
if (rowIndex !== grid.getDataLength() - 1) {
|
||||||
let actionContext: IGridInfo = {
|
let actionContext: IGridInfo = {
|
||||||
batchIndex: batchId,
|
batchIndex: batchId,
|
||||||
resultSetNumber: resultId,
|
resultSetNumber: resultId,
|
||||||
@@ -401,6 +401,7 @@ export abstract class GridParentComponent {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let anchor = { x: event.pageX + 1, y: event.pageY };
|
let anchor = { x: event.pageX + 1, y: event.pageY };
|
||||||
|
|
||||||
this.contextMenuService.showContextMenu({
|
this.contextMenuService.showContextMenu({
|
||||||
getAnchor: () => anchor,
|
getAnchor: () => anchor,
|
||||||
getActions: () => this.actionProvider.getGridActions(),
|
getActions: () => this.actionProvider.getGridActions(),
|
||||||
@@ -408,6 +409,7 @@ export abstract class GridParentComponent {
|
|||||||
getActionsContext: () => (actionContext)
|
getActionsContext: () => (actionContext)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a function that selects all elements of a grid. This needs to
|
* Returns a function that selects all elements of a grid. This needs to
|
||||||
|
|||||||
Reference in New Issue
Block a user