diff --git a/src/app/shared/headers/header-no-search/header-no-search-routing.module.ts b/src/app/shared/headers/header-no-search/header-no-search-routing.module.ts index bff5b2f69..6e1f8a04c 100644 --- a/src/app/shared/headers/header-no-search/header-no-search-routing.module.ts +++ b/src/app/shared/headers/header-no-search/header-no-search-routing.module.ts @@ -1,17 +1,21 @@ -import { NgModule } from '@angular/core'; -import { Routes, RouterModule } from '@angular/router'; - -import { HeaderNoSearchPage } from './header-no-search.page'; - -const routes: Routes = [ - { - path: '', - component: HeaderNoSearchPage +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; + +import { HeaderNoSearchPage } from './header-no-search.page'; + +const routes: Routes = [ + { + path: '', + component: HeaderNoSearchPage + }, { + path: 'profile', + loadChildren: () => import('./profile/profile.module').then( m => m.ProfilePageModule) } -]; -@NgModule({ - imports: [RouterModule.forChild(routes)], - exports: [RouterModule], -}) -export class HeaderNoSearchPageRoutingModule {} +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule], +}) +export class HeaderNoSearchPageRoutingModule {} diff --git a/src/app/shared/headers/header-no-search/header-no-search.page.ts b/src/app/shared/headers/header-no-search/header-no-search.page.ts index f793c1c79..cc42609fe 100644 --- a/src/app/shared/headers/header-no-search/header-no-search.page.ts +++ b/src/app/shared/headers/header-no-search/header-no-search.page.ts @@ -2,7 +2,7 @@ import { Component, OnInit } from '@angular/core'; import { AnimationController, ModalController } from '@ionic/angular'; import { SearchPage } from 'src/app/pages/search/search.page'; import { MenuController } from '@ionic/angular'; -import { ProfileComponent } from './profile/profile.component'; +import { ProfileComponent } from './profile/profile.page'; import { Router } from '@angular/router'; import { AuthService } from 'src/app/services/auth.service'; import { User } from 'src/app/models/user.model'; diff --git a/src/app/shared/headers/header-no-search/profile/profile-routing.module.ts b/src/app/shared/headers/header-no-search/profile/profile-routing.module.ts new file mode 100644 index 000000000..3b21e8195 --- /dev/null +++ b/src/app/shared/headers/header-no-search/profile/profile-routing.module.ts @@ -0,0 +1,17 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; + +import { ProfileComponent } from './profile.page'; + +const routes: Routes = [ + { + path: '', + component: ProfileComponent + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule], +}) +export class ProfilePageRoutingModule {} diff --git a/src/app/shared/headers/header-no-search/profile/profile.component.html b/src/app/shared/headers/header-no-search/profile/profile.component.html deleted file mode 100644 index 68d4c6269..000000000 --- a/src/app/shared/headers/header-no-search/profile/profile.component.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - Perfil - - - - - - - - - - - - - - - - Dados Perfil - {{loggeduser.RoleDescription}} - {{loggeduser.Email}} - - - - - Preferência Login - - - - - Impressão Digital - - - - PIN - - - - - - - - - - - - - - - - - Cancelar - - - - - Gravar - - - - - - \ No newline at end of file diff --git a/src/app/shared/headers/header-no-search/profile/profile.module.ts b/src/app/shared/headers/header-no-search/profile/profile.module.ts new file mode 100644 index 000000000..fba2e4bfa --- /dev/null +++ b/src/app/shared/headers/header-no-search/profile/profile.module.ts @@ -0,0 +1,20 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; + +import { IonicModule } from '@ionic/angular'; + +import { ProfilePageRoutingModule } from './profile-routing.module'; + +import { ProfileComponent } from './profile.page'; + +@NgModule({ + imports: [ + CommonModule, + FormsModule, + IonicModule, + ProfilePageRoutingModule + ], + declarations: [ProfileComponent] +}) +export class ProfilePageModule {} diff --git a/src/app/shared/headers/header-no-search/profile/profile.page.html b/src/app/shared/headers/header-no-search/profile/profile.page.html new file mode 100644 index 000000000..8eda886f9 --- /dev/null +++ b/src/app/shared/headers/header-no-search/profile/profile.page.html @@ -0,0 +1,70 @@ + + + + + + + + + + Perfil + + + + + + + + + + + + + + + + Dados Perfil + {{loggeduser.RoleDescription}} + {{loggeduser.Email}} + + + + + Preferência Login + + + + + Impressão Digital + + + + PIN + + + + + + + + + + + + + + + + + Cancelar + + + + + Gravar + + + + + + \ No newline at end of file diff --git a/src/app/shared/headers/header-no-search/profile/profile.component.scss b/src/app/shared/headers/header-no-search/profile/profile.page.scss similarity index 100% rename from src/app/shared/headers/header-no-search/profile/profile.component.scss rename to src/app/shared/headers/header-no-search/profile/profile.page.scss diff --git a/src/app/shared/headers/header-no-search/profile/profile.component.spec.ts b/src/app/shared/headers/header-no-search/profile/profile.page.spec.ts similarity index 71% rename from src/app/shared/headers/header-no-search/profile/profile.component.spec.ts rename to src/app/shared/headers/header-no-search/profile/profile.page.spec.ts index d50b2595b..e3f18689f 100644 --- a/src/app/shared/headers/header-no-search/profile/profile.component.spec.ts +++ b/src/app/shared/headers/header-no-search/profile/profile.page.spec.ts @@ -1,13 +1,13 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { IonicModule } from '@ionic/angular'; -import { ProfileComponent } from './profile.component'; +import { ProfileComponent } from './profile.page'; -describe('ProfileComponent', () => { +describe('ProfilePage', () => { let component: ProfileComponent; let fixture: ComponentFixture; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [ ProfileComponent ], imports: [IonicModule.forRoot()] diff --git a/src/app/shared/headers/header-no-search/profile/profile.component.ts b/src/app/shared/headers/header-no-search/profile/profile.page.ts similarity index 84% rename from src/app/shared/headers/header-no-search/profile/profile.component.ts rename to src/app/shared/headers/header-no-search/profile/profile.page.ts index f9a966148..c1474e6e5 100644 --- a/src/app/shared/headers/header-no-search/profile/profile.component.ts +++ b/src/app/shared/headers/header-no-search/profile/profile.page.ts @@ -5,8 +5,8 @@ import { AuthService } from 'src/app/services/auth.service'; @Component({ selector: 'app-profile', - templateUrl: './profile.component.html', - styleUrls: ['./profile.component.scss'], + templateUrl: './profile.page.html', + styleUrls: ['./profile.page.scss'], }) export class ProfileComponent implements OnInit { @@ -25,4 +25,9 @@ export class ProfileComponent implements OnInit { this.modalController.dismiss(); } + addPrin(){ + alert('Pin') + } + + }