Skip to content

Commit

Permalink
fix: stepper and dropdowns in policy wizard[3141]
Browse files Browse the repository at this point in the history
  • Loading branch information
Ihar committed Dec 12, 2024
1 parent e58ac71 commit 4a1357f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface TreeNode {
export class StepTreeComponent {
treeControl = new NestedTreeControl<TreeNode>((node) => node.children);
// dataSource = new MatTreeNestedDataSource<TreeNode>();
dataSource: any
dataSource: { data: TreeNode[] } = { data: [] }

@Input('treeData') treeData!: any;
@Input('currentNode') currentNode!: any;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
optionValue="id"
placeholder="Not selected"
>
<ng-template pTemplate="selectedItem" let-selectedItem>
{{ selectedItem ? selectedItem.name : 'Not selected' }}
</ng-template>
</p-dropdown>
</div>
<div class="form-input-container">
Expand All @@ -63,6 +66,9 @@
optionValue="id"
placeholder="Not selected"
>
<ng-template pTemplate="selectedItem" let-selectedItem>
{{ selectedItem ? selectedItem.name : 'Not selected' }}
</ng-template>
</p-dropdown>
</div>
<div class="form-input-container">
Expand Down Expand Up @@ -118,6 +124,9 @@ <h3>Categorization</h3>
optionValue="id"
placeholder="Not selected"
>
<ng-template pTemplate="selectedItem" let-selectedItem>
{{ selectedItem ? selectedItem.name : 'Not selected' }}
</ng-template>
</p-dropdown>
</div>
<div class="form-input-container">
Expand Down

0 comments on commit 4a1357f

Please sign in to comment.