Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
v2-redirect component
  • Loading branch information
Nicole Garcia committed Sep 28, 2022
commit 4b5a5ad9a8f3fe42b03c52fd00c584df2f9e3c66
5 changes: 3 additions & 2 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,19 @@ import { HomeComponent } from './modules/home/home.component';
import { LoginComponent } from './modules/login/login.component';
import { CustomerComponent } from './modules/customer-management/pages/customer.component';
import { UsersComponent } from './modules/users/pages/users.component';
import { V2RedirectComponent } from './modules/v2-redirect/v2-redirect.component';
import { EnvironmentType } from 'src/environments/enum';
import { environment } from 'src/environments/environment';

const isLegacyProd: boolean = environment.production === EnvironmentType.TT_PROD_LEGACY;
const isLegacyProd: boolean = environment.production === EnvironmentType.TT_DEV;
let routes: Routes;

if (isLegacyProd) {
routes = [
{
path: '',
children: [
{ path: '**', redirectTo: 'redirect-message' },
{ path: '**', component: V2RedirectComponent },
],
},
];
Expand Down
2 changes: 2 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ import { SearchUserComponent } from './modules/shared/components/search-user/sea
import { TimeRangeCustomComponent } from './modules/reports/components/time-range-custom/time-range-custom.component';
import { TimeRangeHeaderComponent } from './modules/reports/components/time-range-custom/time-range-header/time-range-header.component';
import { TimeRangeOptionsComponent } from './modules/reports/components/time-range-custom/time-range-options/time-range-options.component';
import { V2RedirectComponent } from './modules/v2-redirect/v2-redirect.component';

const maskConfig: Partial<IConfig> = {
validation: false,
Expand Down Expand Up @@ -154,6 +155,7 @@ const maskConfig: Partial<IConfig> = {
TimeRangeCustomComponent,
TimeRangeHeaderComponent,
TimeRangeOptionsComponent,
V2RedirectComponent,
],
imports: [
NgxMaskModule.forRoot(maskConfig),
Expand Down
Empty file.
3 changes: 3 additions & 0 deletions src/app/modules/v2-redirect/v2-redirect.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>El tiempo siempre llega para todo, y esta vez llego para nosotros
<img src="https://www.nicepng.com/png/detail/399-3993768_sad-clock-bfb-clock.png" alt="sad-clock"/>
</p>
25 changes: 25 additions & 0 deletions src/app/modules/v2-redirect/v2-redirect.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { V2RedirectComponent } from './v2-redirect.component';

describe('V2RedirectComponent', () => {
let component: V2RedirectComponent;
let fixture: ComponentFixture<V2RedirectComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ V2RedirectComponent ]
})
.compileComponents();
});

beforeEach(() => {
fixture = TestBed.createComponent(V2RedirectComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
15 changes: 15 additions & 0 deletions src/app/modules/v2-redirect/v2-redirect.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-v2-redirect',
templateUrl: './v2-redirect.component.html',
styleUrls: ['./v2-redirect.component.css']
})
export class V2RedirectComponent implements OnInit {

constructor() { }

ngOnInit(): void {
}

}