feat: Actualización general de la aplicación
- Contratos, tarjetas, postulaciones, categorías y reportes - Servicios: auth, ichamba, env, language, firebase, interceptor - Guards, modelos, componentes y páginas de verificación - Configuración: angular.json, tsconfig, polyfills, environments - Capacitor: capacitor.config.json y android settings Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,8 @@ import { AlertService } from 'src/app/services/alert.service';
|
||||
@Component({
|
||||
selector: 'app-verify',
|
||||
templateUrl: 'verify.page.html',
|
||||
styleUrls: ['verify.page.scss']
|
||||
styleUrls: ['verify.page.scss'],
|
||||
standalone: false
|
||||
})
|
||||
export class VerifyPage implements OnInit {
|
||||
|
||||
@@ -28,12 +29,12 @@ export class VerifyPage implements OnInit {
|
||||
// auth.service.ts
|
||||
verifyMe(form: NgForm) {
|
||||
this.authService.verifyUser(this.phone_string).subscribe(
|
||||
data => {
|
||||
(data: any) => {
|
||||
console.log(data);
|
||||
this.authService.isVerified = true
|
||||
this.navCtrl.navigateRoot('/dashboard')
|
||||
},
|
||||
error => {
|
||||
(error: any) => {
|
||||
console.log(error);
|
||||
}
|
||||
);
|
||||
@@ -44,11 +45,11 @@ export class VerifyPage implements OnInit {
|
||||
await this.loading.present();
|
||||
|
||||
this.authService.logout().subscribe(
|
||||
data => {
|
||||
(data: any) => {
|
||||
this.alertService.presentToast("Sesión finalizada");
|
||||
// TODO: Clear OneSignal tag when Capacitor plugin is configured
|
||||
},
|
||||
error => {
|
||||
(error: any) => {
|
||||
if (this.loading) this.loading.dismiss();
|
||||
console.log(error);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user