diff --git a/ng-seed/src/app/app.routing.ts b/ng-seed/src/app/app.routing.ts index 00da66a..fc34e3f 100644 --- a/ng-seed/src/app/app.routing.ts +++ b/ng-seed/src/app/app.routing.ts @@ -41,7 +41,11 @@ export const AppRoutes: Routes = [{ { path: 'services', loadChildren: () => import('./appoinment/service-list-details/service-list.module').then(m => m.ServiceListModule) - } + }, + { + path: 'consultant-setting', + loadChildren: () => import('./appoinment/consultant-setting/consultant-setting.module').then(m => m.ConsultantSettingModule) + }, ] }, { diff --git a/ng-seed/src/app/appoinment/consultant-setting/consultant-setting-routing.module.ts b/ng-seed/src/app/appoinment/consultant-setting/consultant-setting-routing.module.ts new file mode 100644 index 0000000..b700a2c --- /dev/null +++ b/ng-seed/src/app/appoinment/consultant-setting/consultant-setting-routing.module.ts @@ -0,0 +1,16 @@ +import { NgModule } from '@angular/core'; +import { RouterModule, Routes } from '@angular/router'; +import { ConsultantSettingComponent } from './consultant-setting/consultant-setting.component'; + +const routes: Routes = [ + { + path: '', + component: ConsultantSettingComponent + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) +export class ConsultantSettingRoutingModule { } diff --git a/ng-seed/src/app/appoinment/consultant-setting/consultant-setting.module.ts b/ng-seed/src/app/appoinment/consultant-setting/consultant-setting.module.ts new file mode 100644 index 0000000..08cfd3d --- /dev/null +++ b/ng-seed/src/app/appoinment/consultant-setting/consultant-setting.module.ts @@ -0,0 +1,21 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; + +import { ConsultantSettingRoutingModule } from './consultant-setting-routing.module'; +import { ConsultantSettingComponent } from './consultant-setting/consultant-setting.component'; +import { DemoMaterialModule } from 'app/shared/demo.module'; +import { NgScrollbarModule } from 'ngx-scrollbar'; + + +@NgModule({ + declarations: [ + ConsultantSettingComponent + ], + imports: [ + CommonModule, + ConsultantSettingRoutingModule, + DemoMaterialModule, + NgScrollbarModule + ] +}) +export class ConsultantSettingModule { } diff --git a/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.css b/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.css new file mode 100644 index 0000000..e69de29 diff --git a/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.html b/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.html new file mode 100644 index 0000000..1eea3f6 --- /dev/null +++ b/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.html @@ -0,0 +1 @@ +

consultant-setting works!

diff --git a/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.spec.ts b/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.spec.ts new file mode 100644 index 0000000..bf8a2bd --- /dev/null +++ b/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ConsultantSettingComponent } from './consultant-setting.component'; + +describe('ConsultantSettingComponent', () => { + let component: ConsultantSettingComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ ConsultantSettingComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(ConsultantSettingComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.ts b/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.ts new file mode 100644 index 0000000..b51f59b --- /dev/null +++ b/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-consultant-setting', + templateUrl: './consultant-setting.component.html', + styleUrls: ['./consultant-setting.component.css'] +}) +export class ConsultantSettingComponent implements OnInit { + + constructor() { } + + ngOnInit(): void { + } + +} diff --git a/ng-seed/src/app/layouts/role-menu-items.pipe.ts b/ng-seed/src/app/layouts/role-menu-items.pipe.ts index c75179f..2a0434e 100644 --- a/ng-seed/src/app/layouts/role-menu-items.pipe.ts +++ b/ng-seed/src/app/layouts/role-menu-items.pipe.ts @@ -10,8 +10,8 @@ export class RoleMenuItemsPipe implements PipeTransform { // // this is for horizontal menu filter // if(type=="1"){ switch(localStorage.getItem('user_role')){ - case 'SADMIN': return value.filter(val=>val.state!="appoinments" && val.state!="customers" && val.state!="consultants" && val.state!="users" && val.state != "service"); - case 'ADMIN': return value.filter(val=>val.state !="business"); + case 'SADMIN': return value.filter(val=>val.state!="appoinments" && val.state!="customers" && val.state!="consultants" && val.state != "services" && val.state != "consultant-setting"); + case 'ADMIN': return value.filter(val=>val.state !="business" && val.state!="appoinments" && val.state!="customers"); // case 'CONSULT': // case '3': return value.filter(val=>val.state!="settings"); // case '4': return value.filter(val=>val.state!="settings" && val.state!="quality_check_discussion" && val.state!="reports" && val.state!="sales-pd-list"); diff --git a/ng-seed/src/app/shared/menu-items/horizontal-menu-items.ts b/ng-seed/src/app/shared/menu-items/horizontal-menu-items.ts index ec5d02d..4f13e3e 100644 --- a/ng-seed/src/app/shared/menu-items/horizontal-menu-items.ts +++ b/ng-seed/src/app/shared/menu-items/horizontal-menu-items.ts @@ -29,19 +29,19 @@ const HORIZONTALMENUITEMS = [ icon: 'explore' }, { - state: 'appoinment', + state: 'appoinments', name: 'Appoinments', type: 'link', - icon: 'security', + icon: 'developer_board', // children: [ // {state: 'appoinments-list', name: 'Appoinments List'}, // ] }, { - state: 'appoinment', + state: 'business', name: 'Business', type: 'link', - icon: 'security', + icon: 'markunread_mailbox', // children: [ // {state: 'business-list', name: 'Business List'}, // // {state: 'add-business-list', name: 'Add Business '}, @@ -57,42 +57,48 @@ const HORIZONTALMENUITEMS = [ // ] // }, { - state: 'appoinment', + state: 'customers', name: 'Customers', type: 'link', - icon: 'security', + icon: 'directions_walk', // children: [ // {state: 'customers-list', name: 'Customers List'}, // ] }, { - state: 'appoinment', + state: 'consultants', name: 'Consultants', type: 'link', - icon: 'security', + icon: 'colorize', // children: [ // {state: 'consultants-list', name: 'Consultants List'}, // ] }, { - state: 'appoinment', + state: 'users', name: 'Users', type: 'link', - icon: 'security', + icon: 'person_pin', // children: [ // {state: 'user-list', name: 'Users List'}, // // {state: 'add-user-list', name: 'Add Users '}, // ] }, { - state: 'appoinment', + state: 'services', name: 'Services List', type: 'link', - icon: 'security', + icon: 'strikethrough_s', // children: [ // {state: 'services-list', name: 'Services List'}, // // {state: 'add-user-list', name: 'Add Users '}, // ] + }, + { + state: 'consultant-setting', + name: 'My Settings', + type: 'link', + icon: 'settings_system_daydream' } ]; diff --git a/ng-seed/src/app/shared/menu-items/menu-items.ts b/ng-seed/src/app/shared/menu-items/menu-items.ts index 04c469c..5f173aa 100644 --- a/ng-seed/src/app/shared/menu-items/menu-items.ts +++ b/ng-seed/src/app/shared/menu-items/menu-items.ts @@ -31,7 +31,7 @@ const MENUITEMS : Menu[] = [ state: 'appoinments', name: 'Appoinments', type: 'link', - icon: 'security', + icon: 'developer_board', // children: [ // {state: 'appoinments-list', name: 'Appoinments List'}, // ] @@ -40,7 +40,7 @@ const MENUITEMS : Menu[] = [ state: 'business', name: 'Business', type: 'link', - icon: 'security', + icon: 'markunread_mailbox', // children: [ // {state: 'business-list', name: 'Business List'}, // // {state: 'add-business-list', name: 'Add Business '}, @@ -59,7 +59,7 @@ const MENUITEMS : Menu[] = [ state: 'customers', name: 'Customers', type: 'link', - icon: 'security', + icon: 'directions_walk', // children: [ // {state: 'customers-list', name: 'Customers List'}, // ] @@ -68,7 +68,7 @@ const MENUITEMS : Menu[] = [ state: 'consultants', name: 'Consultants', type: 'link', - icon: 'security', + icon: 'colorize', // children: [ // {state: 'consultants-list', name: 'Consultants List'}, // ] @@ -77,7 +77,7 @@ const MENUITEMS : Menu[] = [ state: 'users', name: 'Users', type: 'link', - icon: 'security', + icon: 'person_pin', // children: [ // {state: 'user-list', name: 'Users List'}, // // {state: 'add-user-list', name: 'Add Users '}, @@ -87,11 +87,17 @@ const MENUITEMS : Menu[] = [ state: 'services', name: 'Services List', type: 'link', - icon: 'security', + icon: 'strikethrough_s', // children: [ // {state: 'services-list', name: 'Services List'}, // // {state: 'add-user-list', name: 'Add Users '}, // ] + }, + { + state: 'consultant-setting', + name: 'My Settings', + type: 'link', + icon: 'settings_system_daydream' } ];