-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added auto send option for Swap In - Checking compatiblity with v2.0.0 and above
- Loading branch information
1 parent
3acfb2b
commit f0293c0
Showing
18 changed files
with
130 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 15 additions & 4 deletions
19
src/app/shared/components/ln-services/boltz/swap-status/swap-status.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
import { Component, Input } from '@angular/core'; | ||
import { Component, Input, OnInit } from '@angular/core'; | ||
|
||
import { SwapTypeEnum } from '../../../../services/consts-enums-functions'; | ||
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 { | ||
export class SwapStatusComponent implements OnInit { | ||
|
||
@Input() swapStatus: any = null; | ||
@Input() direction = SwapTypeEnum.SWAP_OUT; | ||
@Input() acceptZeroConf = false; | ||
public qrWidth = 240; | ||
public screenSize = ''; | ||
public screenSizeEnum = ScreenSizeEnum; | ||
public swapTypeEnum = SwapTypeEnum; | ||
|
||
constructor() {} | ||
constructor(private commonService: CommonService) {} | ||
|
||
ngOnInit() { | ||
this.screenSize = this.commonService.getScreenSize(); | ||
if (this.screenSize === ScreenSizeEnum.XS) { | ||
this.qrWidth = 180; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.