diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 974df44e1..b5c5b9a5a 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -252,6 +252,10 @@ const routes = [ }, { path: 'chat-message-debugging', loadChildren: () => import('./shared/popover/chat-message-debugging/chat-message-debugging.module').then( m => m.ChatMessageDebuggingPageModule) + }, + { + path: 'add-user', + loadChildren: () => import('./shared/chat/add-user/add-user.module').then( m => m.AddUserPageModule) } diff --git a/src/app/pages/chat/chat.page.html b/src/app/pages/chat/chat.page.html index b16b1ef84..1b20e9b86 100644 --- a/src/app/pages/chat/chat.page.html +++ b/src/app/pages/chat/chat.page.html @@ -218,6 +218,17 @@ class=" height-100 flex-column"> + + { - it('create an instance', () => { - const pipe = new AddUserPipe(); - expect(pipe).toBeTruthy(); - }); -}); diff --git a/src/app/shared/chat/add-user.pipe.ts b/src/app/shared/chat/add-user.pipe.ts deleted file mode 100644 index 8f770b343..000000000 --- a/src/app/shared/chat/add-user.pipe.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Pipe, PipeTransform } from '@angular/core'; - -@Pipe({ - name: 'addUser' -}) -export class AddUserPipe implements PipeTransform { - - transform(value: unknown, ...args: unknown[]): unknown { - return null; - } - -} diff --git a/src/app/shared/chat/add-user/add-user-routing.module.ts b/src/app/shared/chat/add-user/add-user-routing.module.ts new file mode 100644 index 000000000..49bc8b4fe --- /dev/null +++ b/src/app/shared/chat/add-user/add-user-routing.module.ts @@ -0,0 +1,17 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; + +import { AddUserPage } from './add-user.page'; + +const routes: Routes = [ + { + path: '', + component: AddUserPage + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule], +}) +export class AddUserPageRoutingModule {} diff --git a/src/app/shared/chat/add-user/add-user.module.ts b/src/app/shared/chat/add-user/add-user.module.ts new file mode 100644 index 000000000..78b0aaeca --- /dev/null +++ b/src/app/shared/chat/add-user/add-user.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 { AddUserPageRoutingModule } from './add-user-routing.module'; + +import { AddUserPage } from './add-user.page'; + +@NgModule({ + imports: [ + CommonModule, + FormsModule, + IonicModule, + AddUserPageRoutingModule + ], + declarations: [AddUserPage] +}) +export class AddUserPageModule {} diff --git a/src/app/shared/chat/add-user/add-user.page.html b/src/app/shared/chat/add-user/add-user.page.html new file mode 100644 index 000000000..c4bb0ea98 --- /dev/null +++ b/src/app/shared/chat/add-user/add-user.page.html @@ -0,0 +1,9 @@ + + + addUser + + + + + + diff --git a/src/app/shared/chat/add-user/add-user.page.scss b/src/app/shared/chat/add-user/add-user.page.scss new file mode 100644 index 000000000..e69de29bb diff --git a/src/app/shared/chat/add-user/add-user.page.spec.ts b/src/app/shared/chat/add-user/add-user.page.spec.ts new file mode 100644 index 000000000..382032742 --- /dev/null +++ b/src/app/shared/chat/add-user/add-user.page.spec.ts @@ -0,0 +1,24 @@ +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; +import { IonicModule } from '@ionic/angular'; + +import { AddUserPage } from './add-user.page'; + +describe('AddUserPage', () => { + let component: AddUserPage; + let fixture: ComponentFixture; + + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [ AddUserPage ], + imports: [IonicModule.forRoot()] + }).compileComponents(); + + fixture = TestBed.createComponent(AddUserPage); + component = fixture.componentInstance; + fixture.detectChanges(); + })); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/shared/chat/add-user/add-user.page.ts b/src/app/shared/chat/add-user/add-user.page.ts new file mode 100644 index 000000000..e35b74795 --- /dev/null +++ b/src/app/shared/chat/add-user/add-user.page.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-add-user', + templateUrl: './add-user.page.html', + styleUrls: ['./add-user.page.scss'], +}) +export class AddUserPage implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/app/shared/popover/chat-popover/chat-popover.page.html b/src/app/shared/popover/chat-popover/chat-popover.page.html index 099781440..c2f47a60b 100644 --- a/src/app/shared/popover/chat-popover/chat-popover.page.html +++ b/src/app/shared/popover/chat-popover/chat-popover.page.html @@ -6,6 +6,7 @@
+