Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
Revert "feat: "use scanner" alert"
Browse files Browse the repository at this point in the history
This reverts commit 89cf4b1.
  • Loading branch information
Yudi committed Oct 2, 2024
1 parent 163728d commit 49ba154
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<ion-header [translucent]="true">
<ion-toolbar>
<ion-title>USE O SCANNER</ion-title>
<ion-title>Coletar presença</ion-title>
<ion-buttons slot="start">
<ion-back-button defaultHref="/area-restrita/gerenciar-eventos"></ion-back-button>
</ion-buttons>
Expand Down Expand Up @@ -36,7 +36,6 @@ <h2>
#scanner>
</app-aztec-scanner>
<div class="content-max-width margin-horizontal-auto ion-padding-horizontal">
<h1>USE O SCANNER</h1>
<div>
@if (attendanceCollection$ | async; as attendancePeople) { @if (event$ | async; as event) {

Expand Down Expand Up @@ -170,13 +169,3 @@ <h1 class="ion-text-center">Nenhum usuário não-pagante encontrado</h1>
[showCancelButton]="false"
[showCloseButton]="false"
[showConfirmButton]="false"></swal>

<swal
#scannerSwal
title="USE O SCANNER"
icon="warning"
text="PARE de usar a presença manual. Cancele o registro do service worker nos ajustes gerais se o leitor não está funcionando. Leia seus e-mails."
[heightAuto]="false"
[showCancelButton]="false"
[showCloseButton]="false"
[showConfirmButton]="true"></swal>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AfterViewInit, Component, inject, Input, OnInit, signal, ViewChild, WritableSignal } from '@angular/core';
import { Component, inject, Input, OnInit, signal, ViewChild, WritableSignal } from '@angular/core';
import { take, map, Observable, shareReplay } from 'rxjs';
import { AngularFirestore } from '@angular/fire/compat/firestore';
import { ActivatedRoute, Router } from '@angular/router';
Expand Down Expand Up @@ -78,10 +78,9 @@ interface Attendance {
AztecScannerComponent,
],
})
export class ScannerPage implements OnInit, AfterViewInit {
export class ScannerPage implements OnInit {
@Input() manualInput!: string;
@ViewChild('mySwal') mySwal!: SwalComponent;
@ViewChild('scannerSwal') scannerSwal!: SwalComponent;
@ViewChild('scannerCanvas') scannerCanvas!: HTMLCanvasElement;

public emojiService = inject(EmojiService);
Expand Down Expand Up @@ -232,10 +231,6 @@ export class ScannerPage implements OnInit, AfterViewInit {
this.audioNotPaid.load();
}

ngAfterViewInit() {
this.scannerSwal.fire();
}

changeCamera(): void {
this.deviceIndex++;
if (this.deviceIndex === this.availableDevices.length) {
Expand Down

0 comments on commit 49ba154

Please sign in to comment.