mirror of
https://github.com/mempool/mempool.git
synced 2025-01-09 06:59:42 +01:00
90784deacc
fixes #476
23 lines
618 B
TypeScript
23 lines
618 B
TypeScript
import { ChangeDetectionStrategy, Component, Input, OnChanges, OnInit } from '@angular/core';
|
|
import { Observable } from 'rxjs';
|
|
|
|
@Component({
|
|
selector: 'app-bisq-trades',
|
|
templateUrl: './bisq-trades.component.html',
|
|
styleUrls: ['./bisq-trades.component.scss'],
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
})
|
|
export class BisqTradesComponent implements OnChanges {
|
|
@Input() trades$: Observable<any>;
|
|
@Input() market: any;
|
|
@Input() view: 'all' | 'small' = 'all';
|
|
|
|
loadingColumns = [1, 2, 3, 4];
|
|
|
|
ngOnChanges() {
|
|
if (this.view === 'small') {
|
|
this.loadingColumns = [1, 2, 3];
|
|
}
|
|
}
|
|
}
|