mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 11:01:37 -05:00
Adds not equal operator and expands unequal collapsed header rows (#20737)
* Adds not equal operator and expands unequal collapsed prop rows * Minor clean up.
This commit is contained in:
@@ -265,17 +265,23 @@ export class ExecutionPlanComparisonPropertiesView extends ExecutionPlanProperti
|
|||||||
const treeGridChildren = row.treeGridChildren;
|
const treeGridChildren = row.treeGridChildren;
|
||||||
|
|
||||||
if (treeGridChildren?.length > 0) {
|
if (treeGridChildren?.length > 0) {
|
||||||
let [unequalSubRows, equalSubRows] = this.splitEqualFromUnequalProperties(treeGridChildren);
|
const [unequalSubRows, equalSubRows] = this.splitEqualFromUnequalProperties(treeGridChildren);
|
||||||
|
|
||||||
if (unequalSubRows.length > 0) {
|
if (unequalSubRows.length > 0) {
|
||||||
let currentRow = deepClone(row);
|
const currentRow = deepClone(row);
|
||||||
currentRow.treeGridChildren = unequalSubRows;
|
currentRow.treeGridChildren = unequalSubRows;
|
||||||
|
currentRow.expanded = true;
|
||||||
|
|
||||||
|
currentRow.icon = {
|
||||||
|
iconCssClass: executionPlanComparisonPropertiesDifferent,
|
||||||
|
title: notEqualTitle
|
||||||
|
};
|
||||||
|
|
||||||
unequalRows.push(currentRow);
|
unequalRows.push(currentRow);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (equalSubRows.length > 0) {
|
if (equalSubRows.length > 0) {
|
||||||
let currentRow = deepClone(row);
|
const currentRow = deepClone(row);
|
||||||
currentRow.treeGridChildren = equalSubRows;
|
currentRow.treeGridChildren = equalSubRows;
|
||||||
|
|
||||||
equalRows.push(currentRow);
|
equalRows.push(currentRow);
|
||||||
|
|||||||
Reference in New Issue
Block a user