Skip to content

Commit 7e8576e

Browse files
fix(draft): registries select component (#453)
1 parent e137e15 commit 7e8576e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/app/features/registries/components/review/review.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ export class ReviewComponent {
164164
},
165165
})
166166
.onClose.subscribe((selectedComponents) => {
167-
this.openConfirmRegistrationDialog(selectedComponents);
167+
if (selectedComponents) {
168+
this.openConfirmRegistrationDialog(selectedComponents);
169+
}
168170
});
169171
}
170172

src/app/features/registries/components/select-components-dialog/select-components-dialog.component.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
<p class="mb-2">{{ 'registries.review.selectComponents.description' | translate }}</p>
22

3-
<p-tree [value]="components" selectionMode="checkbox" class="w-full md:w-[30rem]" [(selection)]="selectedComponents" />
3+
<p-tree
4+
[value]="components"
5+
selectionMode="checkbox"
6+
class="w-full md:w-[30rem]"
7+
[(selection)]="selectedComponents"
8+
[propagateSelectionUp]="false"
9+
/>
410

511
<div class="flex justify-content-end gap-2 mt-4">
612
<p-button

0 commit comments

Comments
 (0)