[accelerator] preview cta points to mempool.space if not official build

This commit is contained in:
nymkappa 2024-03-09 17:45:08 +09:00
parent 10819fda6d
commit 52c4dd8bc3
No known key found for this signature in database
GPG Key ID: 92358FC85D9645DE
2 changed files with 12 additions and 1 deletions

View File

@ -219,7 +219,7 @@
</ng-container>
<!-- LOGIN CTA -->
<ng-container *ngIf="!isLoggedIn()">
<ng-container *ngIf="stateService.isMempoolSpaceBuild && !isLoggedIn()">
<tr class="group-first group-last" style="border-top: 1px dashed grey">
<td class="item"></td>
<td class="amt"></td>
@ -228,6 +228,15 @@
</td>
</tr>
</ng-container>
<ng-container *ngIf="!stateService.isMempoolSpaceBuild">
<tr class="group-first group-last" style="border-top: 1px dashed grey">
<td class="item"></td>
<td class="amt"></td>
<td class="units d-flex">
<a [href]="'https://mempool.space/tx/' + tx.txid + '#accelerate'" class="btn btn-purple flex-grow-1">Accelerate on mempool.space</a>
</td>
</tr>
</ng-container>
</tbody>
</table>
</div>

View File

@ -6,6 +6,7 @@ import { Transaction } from '../../interfaces/electrs.interface';
import { nextRoundNumber } from '../../shared/common.utils';
import { ServicesApiServices } from '../../services/services-api.service';
import { AudioService } from '../../services/audio.service';
import { StateService } from '../../services/state.service';
export type AccelerationEstimate = {
txSummary: TxSummary;
@ -63,6 +64,7 @@ export class AcceleratePreviewComponent implements OnInit, OnDestroy, OnChanges
maxRateOptions: RateOption[] = [];
constructor(
public stateService: StateService,
private servicesApiService: ServicesApiServices,
private storageService: StorageService,
private audioService: AudioService,