mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-24 01:25: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;
|
||||
|
||||
if (treeGridChildren?.length > 0) {
|
||||
let [unequalSubRows, equalSubRows] = this.splitEqualFromUnequalProperties(treeGridChildren);
|
||||
const [unequalSubRows, equalSubRows] = this.splitEqualFromUnequalProperties(treeGridChildren);
|
||||
|
||||
if (unequalSubRows.length > 0) {
|
||||
let currentRow = deepClone(row);
|
||||
const currentRow = deepClone(row);
|
||||
currentRow.treeGridChildren = unequalSubRows;
|
||||
currentRow.expanded = true;
|
||||
|
||||
currentRow.icon = {
|
||||
iconCssClass: executionPlanComparisonPropertiesDifferent,
|
||||
title: notEqualTitle
|
||||
};
|
||||
|
||||
unequalRows.push(currentRow);
|
||||
}
|
||||
|
||||
if (equalSubRows.length > 0) {
|
||||
let currentRow = deepClone(row);
|
||||
const currentRow = deepClone(row);
|
||||
currentRow.treeGridChildren = equalSubRows;
|
||||
|
||||
equalRows.push(currentRow);
|
||||
|
||||
Reference in New Issue
Block a user