Skip to content

Commit

Permalink
teste
Browse files Browse the repository at this point in the history
  • Loading branch information
Fábio Henrique authored and Fábio Henrique committed Nov 23, 2024
1 parent 049de16 commit ddc7686
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ <h3 class="text-base font-medium text-foreground">
</span>
</h3>
<p class="text-sm text-muted-foreground">{{ statusMessage }}</p>
<p class="mt-4 text-md font-medium text-muted-foreground">Tempo total decorrido:</p>
<p-progressBar [value]="progressBarValue"></p-progressBar>
<p class="mt-4 text-md font-medium text-muted-foreground">Tempo total decorrido:</p>
<p class="text-sm text-muted-foreground mt-2">{{ (maxTime - elapsedTime) / 60 | number:'1.0-0' }} minutos restantes</p>
</div>
<iframe *ngIf="paymentIframeUrl" [src]="paymentIframeUrl | safe"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export class PaymentPixComponent implements OnInit, OnDestroy {
startTimer(): void {
this.timerInterval = interval(1000).subscribe(() => {
this.elapsedTime++;
console.log(this.paymentStatus)

if (this.elapsedTime % 1 === 0) {
this.checkPaymentStatus(); // Verifica o status a cada 1 segundo
Expand Down

0 comments on commit ddc7686

Please sign in to comment.