2021-05-11 02:15:11 +02:00
|
|
|
import { ChangeDetectionStrategy, Component, Input, OnChanges, OnInit } from '@angular/core';
|
2021-04-25 17:02:26 +02:00
|
|
|
import { Observable } from 'rxjs';
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-bisq-trades',
|
|
|
|
templateUrl: './bisq-trades.component.html',
|
|
|
|
styleUrls: ['./bisq-trades.component.scss'],
|
|
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
|
|
})
|
2021-05-11 02:15:11 +02:00
|
|
|
export class BisqTradesComponent implements OnChanges {
|
2021-04-25 17:02:26 +02:00
|
|
|
@Input() trades$: Observable<any>;
|
|
|
|
@Input() market: any;
|
2021-05-11 02:15:11 +02:00
|
|
|
@Input() view: 'all' | 'small' = 'all';
|
|
|
|
|
|
|
|
loadingColumns = [1, 2, 3, 4];
|
|
|
|
|
|
|
|
ngOnChanges() {
|
|
|
|
if (this.view === 'small') {
|
|
|
|
this.loadingColumns = [1, 2, 3];
|
|
|
|
}
|
|
|
|
}
|
2021-04-25 17:02:26 +02:00
|
|
|
}
|