From 8ead1268e3e3a8f260cbab35354c6dd010cfa15f Mon Sep 17 00:00:00 2001 From: "tiago.kayaya" Date: Mon, 29 Mar 2021 10:33:56 +0100 Subject: [PATCH] Fixed pipes for search --- src/app/home/home-routing.module.ts | 35 +++++++++++++------ src/app/pages/chat/chat.module.ts | 2 ++ .../group-contacts/group-contacts.page.html | 2 +- 3 files changed, 27 insertions(+), 12 deletions(-) diff --git a/src/app/home/home-routing.module.ts b/src/app/home/home-routing.module.ts index 93247d8de..5c80c4160 100644 --- a/src/app/home/home-routing.module.ts +++ b/src/app/home/home-routing.module.ts @@ -162,21 +162,34 @@ const routes: Routes = [ children: [ { path:'', - /* outlet:'message', */ - component: MessagesPage - //loadChildren: ()=> import('../pages/chat/messages/messages.module').then(m => m.MessagesPageModule) + loadChildren: ()=> import('../pages/chat/messages/messages.module').then(m => m.MessagesPageModule) + }, + { + path:'contacts', + loadChildren: ()=> import('../shared/chat/messages/contacts/contacts.module').then(m => m.ContactsPageModule) + }, + { + path:'contacts', + loadChildren: ()=> import('../pages/chat/messages/contacts/contacts.module').then(m => m.ContactsPageModule) }, ] }, { - path:'messages', - outlet:'message', - component: MessagesPage - }, - { - path:'groups', - outlet:'group', - component: GroupMessagesPage + path:'group-messages', + children:[ + { + path:'', + loadChildren: ()=> import('../pages/chat/group-messages/group-messages.module').then(m => m.GroupMessagesPageModule) + }, + { + path:'group-contacts', + loadChildren: ()=> import('../shared/chat/group-messages/group-contacts/group-contacts.module').then(m => m.GroupContactsPageModule) + }, + { + path:'group-contacts', + loadChildren: ()=> import('../pages/chat/group-messages/group-contacts/group-contacts.module').then(m => m.GroupContactsPageModule) + }, + ] }, ] diff --git a/src/app/pages/chat/chat.module.ts b/src/app/pages/chat/chat.module.ts index d3e4021b0..fb3ceaaeb 100644 --- a/src/app/pages/chat/chat.module.ts +++ b/src/app/pages/chat/chat.module.ts @@ -15,6 +15,7 @@ import { EmptyChatPage } from 'src/app/shared/chat/empty-chat/empty-chat.page'; import { ContactsPage } from 'src/app/shared/chat/messages/contacts/contacts.page'; import { NewGroupPage } from 'src/app/shared/chat/new-group/new-group.page'; import { GroupContactsPage } from 'src/app/shared/chat/group-messages/group-contacts/group-contacts.page'; +import { PipesModule } from 'src/app/pipes/pipes.module'; @NgModule({ imports: [ @@ -22,6 +23,7 @@ import { GroupContactsPage } from 'src/app/shared/chat/group-messages/group-cont FormsModule, IonicModule, SharedModule, + PipesModule, ChatPageRoutingModule, RouterModule, ], diff --git a/src/app/shared/chat/group-messages/group-contacts/group-contacts.page.html b/src/app/shared/chat/group-messages/group-contacts/group-contacts.page.html index dc129dd35..4baa1e7a5 100644 --- a/src/app/shared/chat/group-messages/group-contacts/group-contacts.page.html +++ b/src/app/shared/chat/group-messages/group-contacts/group-contacts.page.html @@ -38,7 +38,7 @@ - +
{{header}}