Commit 8835b4af16e34aa2312353eb7118d22e74ed9887

Authored by Marcelo Puebla
1 parent 18db4a9f27
Exists in develop

Change

Iconos y textos que hacian referencia a axion
No preview for this file type
src/app/app.component.ts
1 import { Component } from '@angular/core'; 1 import { Component } from '@angular/core';
2 import { ConnectionService } from 'ng-connection-service'; 2 import { ConnectionService } from 'ng-connection-service';
3 import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal'; 3 import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal';
4 import { InternetConnectionComponent } from './shared/internet-connection/internet-connection.component'; 4 import { InternetConnectionComponent } from './shared/internet-connection/internet-connection.component';
5 import { Title } from '@angular/platform-browser';
5 6
6 @Component({ 7 @Component({
7 selector: 'app-root', 8 selector: 'app-root',
8 templateUrl: './app.component.html', 9 templateUrl: './app.component.html',
9 styleUrls: ['./app.component.scss'] 10 styleUrls: ['./app.component.scss']
10 }) 11 })
11 export class AppComponent { 12 export class AppComponent {
12 title = 'autoservicio-axion';
13 status = 'ONLINE'; 13 status = 'ONLINE';
14 isConnected = true; 14 isConnected = true;
15 modalRef: BsModalRef; 15 modalRef: BsModalRef;
16 16
17 constructor( 17 constructor(
18 private connectionService: ConnectionService, 18 private connectionService: ConnectionService,
19 private modalService: BsModalService, 19 private modalService: BsModalService,
20 private title: Title
20 ) { 21 ) {
22 this.title.setTitle('Autoservicio');
21 this.connectionService.monitor().subscribe(isConnected => { 23 this.connectionService.monitor().subscribe(isConnected => {
22 this.isConnected = isConnected; 24 this.isConnected = isConnected;
23 if (this.isConnected && this.modalRef) { 25 if (this.isConnected && this.modalRef) {
24 this.modalRef.hide(); 26 this.modalRef.hide();
25 } else { 27 } else {
26 this.modalRef = this.modalService.show(InternetConnectionComponent, { 28 this.modalRef = this.modalService.show(InternetConnectionComponent, {
27 backdrop: false, 29 backdrop: false,
28 ignoreBackdropClick: true, 30 ignoreBackdropClick: true,
29 class: 'modal-dialog-centered' 31 class: 'modal-dialog-centered'
30 }); 32 });
31 } 33 }
32 }); 34 });
33 } 35 }
34 } 36 }
src/app/modules/splash-screen/splash-screen.component.ts
1 import { Component, OnInit } from '@angular/core'; 1 import { Component, OnInit } from '@angular/core';
2 import { ArticuloService } from 'src/app/services/articulo/articulo.service'; 2 import { ArticuloService } from 'src/app/services/articulo/articulo.service';
3 3
4 @Component({ 4 @Component({
5 selector: 'app-splash-screen', 5 selector: 'app-splash-screen',
6 templateUrl: './splash-screen.component.html', 6 templateUrl: './splash-screen.component.html',
7 styleUrls: ['./splash-screen.component.scss'] 7 styleUrls: ['./splash-screen.component.scss']
8 }) 8 })
9 export class SplashScreenComponent implements OnInit { 9 export class SplashScreenComponent implements OnInit {
10 timerSplashScreen = 2000; 10 timerSplashScreen = 2000;
11 showSplashScreen = true; 11 showSplashScreen = true;
12 textWelcome = 'BIENVENIDO A SPOT!'; 12 textWelcome = 'BIENVENIDO!';
13 textComoEstas = '¿cómo estás?'; 13 textComoEstas = '¿cómo estás?';
14 textInvitamos = 'TE INVITAMOS A HACER'; 14 textInvitamos = 'TE INVITAMOS A HACER';
15 textTuPedido = 'tu pedido acá'; 15 textTuPedido = 'tu pedido acá';
16 16
17 constructor( 17 constructor(
18 private articuloService: ArticuloService, 18 private articuloService: ArticuloService,
19 ) { } 19 ) { }
20 20
21 ngOnInit() { 21 ngOnInit() {
22 this.articuloService.cleanShoppingCar(); 22 this.articuloService.cleanShoppingCar();
23 localStorage.clear(); 23 localStorage.clear();
24 setTimeout(() => { 24 setTimeout(() => {
25 this.showSplashScreen = false; 25 this.showSplashScreen = false;
26 }, this.timerSplashScreen); 26 }, this.timerSplashScreen);
27 $('body').removeClass('media-pantalla'); 27 $('body').removeClass('media-pantalla');
28 } 28 }
29 } 29 }
30 30
No preview for this file type