Browse Source

chore: remove isLoading variable

pull/2487/head
Dhoni77 2 years ago
parent
commit
71a14b32c8
  1. 21
      libs/ui/src/lib/currency-selector/currency-selector.component.html
  2. 5
      libs/ui/src/lib/currency-selector/currency-selector.component.scss
  3. 1
      libs/ui/src/lib/currency-selector/currency-selector.component.ts

21
libs/ui/src/lib/currency-selector/currency-selector.component.html

@ -11,18 +11,11 @@
[displayWith]="displayFn" [displayWith]="displayFn"
(optionSelected)="onUpdateCurrency($event)" (optionSelected)="onUpdateCurrency($event)"
> >
<ng-container *ngIf="!isLoading"> <mat-option
<mat-option *ngFor="let currencyItem of filteredCurrencies"
*ngFor="let currencyItem of filteredCurrencies" class="line-height-1"
class="line-height-1" [value]="currencyItem"
[value]="currencyItem" >
> {{ currencyItem.label }}
{{ currencyItem.label }} </mat-option>
</mat-option>
</ng-container>
</mat-autocomplete> </mat-autocomplete>
<mat-spinner
*ngIf="isLoading"
class="position-absolute"
[diameter]="20"
></mat-spinner>

5
libs/ui/src/lib/currency-selector/currency-selector.component.scss

@ -1,8 +1,3 @@
:host { :host {
display: block; display: block;
.mat-mdc-progress-spinner {
right: 0;
top: calc(50% - 10px);
}
} }

1
libs/ui/src/lib/currency-selector/currency-selector.component.ts

@ -42,7 +42,6 @@ export class CurrencySelectorComponent
implements OnInit, OnDestroy implements OnInit, OnDestroy
{ {
@Input() private currencies: Currency[] = []; @Input() private currencies: Currency[] = [];
@Input() public isLoading = false;
@ViewChild(MatInput, { static: false }) private input: MatInput; @ViewChild(MatInput, { static: false }) private input: MatInput;

Loading…
Cancel
Save