You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
921 B
TypeScript
32 lines
921 B
TypeScript
import { Component, Input, OnInit } from '@angular/core';
|
|
|
|
import { SwapTypeEnum, ScreenSizeEnum } from '../../../../services/consts-enums-functions';
|
|
import { CommonService } from '../../../../services/common.service';
|
|
|
|
@Component({
|
|
selector: 'rtl-boltz-swap-status',
|
|
templateUrl: './swap-status.component.html',
|
|
styleUrls: ['./swap-status.component.scss']
|
|
})
|
|
export class SwapStatusComponent implements OnInit {
|
|
|
|
@Input() swapStatus: any = null;
|
|
@Input() direction = SwapTypeEnum.SWAP_OUT;
|
|
@Input() acceptZeroConf = false;
|
|
@Input() sendFromInternal = true;
|
|
public qrWidth = 240;
|
|
public screenSize = '';
|
|
public screenSizeEnum = ScreenSizeEnum;
|
|
public swapTypeEnum = SwapTypeEnum;
|
|
|
|
constructor(private commonService: CommonService) {}
|
|
|
|
ngOnInit() {
|
|
this.screenSize = this.commonService.getScreenSize();
|
|
if (this.screenSize === ScreenSizeEnum.XS) {
|
|
this.qrWidth = 180;
|
|
}
|
|
}
|
|
|
|
}
|