Commit 97c11f0 Genaro Salas
committed
1 parent c1eef72 commit 97c11f0 Copy full SHA for 97c11f0
File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import { DatosUbicacionesComponent } from './components/datos-ubicaciones/datos-
20
20
import { Autorizacion } from "./components/autorizacion/Autorizacion" ;
21
21
import { CrearEventoComponent } from './components/crear-evento/crear-evento.component' ;
22
22
import { MisEventosComponent } from './components/mis-eventos/mis-eventos.component' ;
23
+ import { AlifeFileToBase64Module } from "alife-file-to-base64" ;
23
24
24
25
@NgModule ( {
25
26
declarations : [
@@ -47,6 +48,7 @@ import { MisEventosComponent } from './components/mis-eventos/mis-eventos.compon
47
48
HttpClientModule ,
48
49
AppRoutingModule ,
49
50
IonicModule . forRoot ( ) ,
51
+ AlifeFileToBase64Module ,
50
52
] ,
51
53
providers : [ Autorizacion ] ,
52
54
bootstrap : [ AppComponent ]
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ export class HomeComponent implements OnInit {
15
15
eventos :any ;
16
16
modal = new ModalComponent ( ) ;
17
17
eventosByUsuario : any ;
18
- /**
18
+ mostrar = true
19
+ /**
19
20
* @ignore
20
21
*/
21
22
constructor ( private usuarioService : UsuarioService , private formBuilder : FormBuilder ,
@@ -45,11 +46,11 @@ export class HomeComponent implements OnInit {
45
46
( data ) => {
46
47
console . log ( 'hola' ) ;
47
48
if ( data [ 'status' ] != 'error' ) {
48
-
49
49
this . eventos = data ;
50
+ this . mostrar = true ;
50
51
console . log ( this . eventos [ 0 ] [ 'imagen' ] )
51
52
} else {
52
- // this.mostrar = true ;
53
+ this . mostrar = false ;
53
54
console . log ( data ) ;
54
55
}
55
56
} ,
You can’t perform that action at this time.
0 commit comments