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"
(optionSelected)="onUpdateCurrency($event)"
>
<ng-container *ngIf="!isLoading">
<mat-option
*ngFor="let currencyItem of filteredCurrencies"
class="line-height-1"
[value]="currencyItem"
>
{{ currencyItem.label }}
</mat-option>
</ng-container>
<mat-option
*ngFor="let currencyItem of filteredCurrencies"
class="line-height-1"
[value]="currencyItem"
>
{{ currencyItem.label }}
</mat-option>
</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 {
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
{
@Input() private currencies: Currency[] = [];
@Input() public isLoading = false;
@ViewChild(MatInput, { static: false }) private input: MatInput;

Loading…
Cancel
Save