Skip to content

Commit

Permalink
Fetch tokens only if panel is expanded
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwang committed Oct 16, 2018
1 parent e667b12 commit ef72421
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div>
<form class="form" [formGroup]="authTokenForm" (ngSubmit)="onSubmit(authTokenForm.value)" autocomplete="off">
<mat-expansion-panel>
<mat-expansion-panel #tokenPanel>
<mat-expansion-panel-header>
<mat-panel-title>
API Tokens
Expand All @@ -10,7 +10,7 @@
</mat-panel-description>
</mat-expansion-panel-header>
<br />
<table class="table table-hover">
<table class="table table-hover" *ngIf="tokenPanel.expanded">
<thead>
<tr>
<th class="col-md-2"><p> Name </p></th>
Expand Down

0 comments on commit ef72421

Please sign in to comment.