Skip to content

Commit

Permalink
Fix display of details in endpoint card in endpoint list (#4319)
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-cox authored Jun 2, 2020
1 parent 5a76775 commit 630f2b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
-->
</div>
</div>
<app-copy-to-clipboard #copyToClipboard class="endpoint-card__hidden" [text]="address" tooltip="Copy to clipboard" [showSuccessText]="false"></app-copy-to-clipboard>
<app-copy-to-clipboard #copyToClipboard class="endpoint-card__hidden" [text]="address" tooltip="Copy to clipboard"
[showSuccessText]="false"></app-copy-to-clipboard>
</div>
</app-meta-card-title>
<app-meta-card-item>
Expand All @@ -43,10 +44,10 @@
</div>
</app-meta-card-value>
</app-meta-card-item>
<app-meta-card-item *ngIf="hasDetails">
<app-meta-card-item [hidden]="!hasDetails">
<app-meta-card-key>Details</app-meta-card-key>
<app-meta-card-value>
<div #endpointDetails></div>
</app-meta-card-value>
</app-meta-card-item>
</app-meta-card>
</app-meta-card>
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class EndpointCardComponent extends CardCell<EndpointModel> implements On

@Input() component: EndpointListDetailsComponent;
private endpointDetails: ViewContainerRef;
@ViewChild('endpointDetails', { read: ViewContainerRef }) set content(content: ViewContainerRef) {
@ViewChild('endpointDetails', { read: ViewContainerRef, static: true }) set content(content: ViewContainerRef) {
this.endpointDetails = content;
this.updateInnerComponent();
}
Expand Down

0 comments on commit 630f2b5

Please sign in to comment.