Skip to content

Commit

Permalink
Work for #7064: fix paneldynamic remove btn dynamic component in Angu…
Browse files Browse the repository at this point in the history
…lar (#7092)
  • Loading branch information
dk981234 committed Oct 6, 2023
1 parent a64c980 commit 300deb4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<ng-container *ngFor="let panel of renderedPanels; index as index">
<div [class]="model.getPanelWrapperCss()">
<ng-template [component]="{ name: getPanelComponentName(panel), data: getPanelComponentData(panel) }"></ng-template>
<ng-container *ngIf="model.panelRemoveButtonLocation ==='right'">
<sv-ng-paneldynamic-remove-btn *ngIf="model.canRemovePanel && panel.state != 'collapsed' && model.panelRemoveButtonLocation == 'right'" [data]="{ panel: panel, question: model }"></sv-ng-paneldynamic-remove-btn>
<ng-container *ngIf="model.panelRemoveButtonLocation ==='right' && model.canRemovePanel && panel.state != 'collapsed'">
<ng-template [component]="{ name: 'sv-paneldynamic-remove-btn', data: { data: { panel, question: model }}}"></ng-template>
</ng-container>
</div>
<!-- add track by [key]="'separator' + panel.id" -->
Expand Down

0 comments on commit 300deb4

Please sign in to comment.