This commit is contained in:
Jan Prochazka
2022-12-30 09:04:40 +01:00
parent eb80eb1afa
commit 646a83b288

View File

@@ -146,6 +146,9 @@ export abstract class PerspectiveTreeNode {
get preloadedLevelData() {
return false;
}
get findByDesignerIdWithoutDesignerId() {
return false;
}
matchChildRow(parentRow: any, childRow: any): boolean {
return true;
}
@@ -219,7 +222,7 @@ export abstract class PerspectiveTreeNode {
get hasUncheckedNodeInPath() {
if (!this.parentNode) return false;
if (!this.isCheckedNode) return true;
if (this.designerId && !this.isCheckedNode) return true;
return this.parentNode.hasUncheckedNodeInPath;
}
@@ -413,7 +416,7 @@ export abstract class PerspectiveTreeNode {
// }
findNodeByDesignerId(designerId: string): PerspectiveTreeNode {
if (!this.designerId) {
if (!this.designerId && !this.findByDesignerIdWithoutDesignerId) {
return null;
}
if (!designerId) {
@@ -774,6 +777,10 @@ export class PerspectivePatternColumnNode extends PerspectiveTreeNode {
return this.parentNode instanceof PerspectivePatternColumnNode;
}
get findByDesignerIdWithoutDesignerId() {
return this.isExpandable;
}
matchChildRow(parentRow: any, childRow: any): boolean {
console.log('MATCH PATTENR ROW', parentRow, childRow);
return false;