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:
@@ -11,12 +11,13 @@ import { AlertService } from 'src/app/services/alert.service';
|
||||
selector: 'app-review',
|
||||
templateUrl: './review.page.html',
|
||||
styleUrls: ['./review.page.scss'],
|
||||
standalone: false
|
||||
})
|
||||
export class ReviewPage implements OnInit {
|
||||
|
||||
private loading;
|
||||
private loading: HTMLIonLoadingElement | null = null;
|
||||
rate: any;
|
||||
contract_id: number = null;
|
||||
contract_id: number | null = null;
|
||||
comment: any;
|
||||
|
||||
constructor(
|
||||
@@ -33,7 +34,7 @@ export class ReviewPage implements OnInit {
|
||||
this.contract_id = Number(this.activatedRoute.snapshot.paramMap.get('contract_id'));
|
||||
}
|
||||
|
||||
onRateChange(rating){
|
||||
onRateChange(rating: any){
|
||||
console.log("changed rating: " + rating);
|
||||
// do your stuff
|
||||
}
|
||||
@@ -44,13 +45,13 @@ export class ReviewPage implements OnInit {
|
||||
this.loading = overlay;
|
||||
this.loading.present();
|
||||
});
|
||||
this.ichambaService.reviewContract(this.contract_id, this.rate, this.comment).subscribe(
|
||||
data => {
|
||||
this.loading.dismiss();
|
||||
this.ichambaService.reviewContract(this.contract_id!, this.rate, this.comment).subscribe(
|
||||
(data: any) => {
|
||||
if (this.loading) this.loading.dismiss();
|
||||
this.alertService.presentToast(data['message']);
|
||||
this.navCtrl.navigateRoot('/dashboard');
|
||||
}, error => {
|
||||
this.loading.dismiss();
|
||||
}, (error: any) => {
|
||||
if (this.loading) this.loading.dismiss();
|
||||
this.alertService.presentToast(this.translateService.instant('alerts.error') + error['status']);
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user