Skip to content

Commit 80ee176

Browse files
Correctly import pipes
1 parent 94b3e00 commit 80ee176

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

frontend/src/app/annotate/annotation-parse-results/parse-tree-table/tree-node.component.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import { Component, input } from '@angular/core';
2-
import { SubscriptAngleBracketsPipe } from './subscript-angle-brackets.pipe';
2+
import { SubscriptPipe } from '@/pipes/subscript-pipe';
3+
import { SelectiveUpperCasePipe } from '@/pipes/selective-upper-case.pipe';
4+
import { TreeType } from '../annotation-parse-results.component';
35

46
export interface TreeNodeDisplay {
57
type: 'node' | 'leaf' | 'var';
6-
content: string;
8+
content?: string;
79
rule?: string;
810
children: TreeNodeDisplay[];
911
// For leaf nodes
@@ -22,10 +24,11 @@ export interface TreeNodeDisplay {
2224
@Component({
2325
selector: 'la-tree-node',
2426
standalone: true,
25-
imports: [SubscriptAngleBracketsPipe],
27+
imports: [SubscriptPipe, SelectiveUpperCasePipe],
2628
templateUrl: './tree-node.component.html',
2729
styleUrl: './tree-node.component.scss'
2830
})
2931
export class TreeNodeComponent {
3032
public readonly node = input.required<TreeNodeDisplay>();
33+
public readonly treeType = input.required<TreeType>();
3134
}

0 commit comments

Comments
 (0)