Skip to content

Commit

Permalink
error personalizado cuando no hay eventos.
Browse files Browse the repository at this point in the history
  • Loading branch information
Genaro Salas committed Jun 13, 2022
1 parent c1eef72 commit 97c11f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { DatosUbicacionesComponent } from './components/datos-ubicaciones/datos-
import {Autorizacion} from "./components/autorizacion/Autorizacion";
import { CrearEventoComponent } from './components/crear-evento/crear-evento.component';
import { MisEventosComponent } from './components/mis-eventos/mis-eventos.component';
import {AlifeFileToBase64Module} from "alife-file-to-base64";

@NgModule({
declarations: [
Expand Down Expand Up @@ -47,6 +48,7 @@ import { MisEventosComponent } from './components/mis-eventos/mis-eventos.compon
HttpClientModule,
AppRoutingModule,
IonicModule.forRoot(),
AlifeFileToBase64Module,
],
providers: [Autorizacion],
bootstrap: [AppComponent]
Expand Down
7 changes: 4 additions & 3 deletions src/app/components/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export class HomeComponent implements OnInit {
eventos:any;
modal=new ModalComponent();
eventosByUsuario: any;
/**
mostrar=true
/**
* @ignore
*/
constructor(private usuarioService: UsuarioService, private formBuilder: FormBuilder,
Expand Down Expand Up @@ -45,11 +46,11 @@ export class HomeComponent implements OnInit {
(data) => {
console.log('hola');
if (data['status'] != 'error') {

this.eventos = data;
this.mostrar=true;
console.log(this.eventos[0]['imagen'])
} else {
//this.mostrar = true;
this.mostrar=false;
console.log(data);
}
},
Expand Down

0 comments on commit 97c11f0

Please sign in to comment.