consultant-setting added
This commit is contained in:
parent
e3c69a630f
commit
4307745647
@ -41,7 +41,11 @@ export const AppRoutes: Routes = [{
|
|||||||
{
|
{
|
||||||
path: 'services',
|
path: 'services',
|
||||||
loadChildren: () => import('./appoinment/service-list-details/service-list.module').then(m => m.ServiceListModule)
|
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)
|
||||||
|
},
|
||||||
|
|
||||||
]
|
]
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@ -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 { }
|
||||||
@ -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 { }
|
||||||
@ -0,0 +1 @@
|
|||||||
|
<p>consultant-setting works!</p>
|
||||||
@ -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<ConsultantSettingComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
declarations: [ ConsultantSettingComponent ]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
});
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(ConsultantSettingComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -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 {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -10,8 +10,8 @@ export class RoleMenuItemsPipe implements PipeTransform {
|
|||||||
// // this is for horizontal menu filter
|
// // this is for horizontal menu filter
|
||||||
// if(type=="1"){
|
// if(type=="1"){
|
||||||
switch(localStorage.getItem('user_role')){
|
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 '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");
|
case 'ADMIN': return value.filter(val=>val.state !="business" && val.state!="appoinments" && val.state!="customers");
|
||||||
// case 'CONSULT':
|
// case 'CONSULT':
|
||||||
// case '3': return value.filter(val=>val.state!="settings");
|
// 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");
|
// case '4': return value.filter(val=>val.state!="settings" && val.state!="quality_check_discussion" && val.state!="reports" && val.state!="sales-pd-list");
|
||||||
|
|||||||
@ -29,19 +29,19 @@ const HORIZONTALMENUITEMS = [
|
|||||||
icon: 'explore'
|
icon: 'explore'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
state: 'appoinment',
|
state: 'appoinments',
|
||||||
name: 'Appoinments',
|
name: 'Appoinments',
|
||||||
type: 'link',
|
type: 'link',
|
||||||
icon: 'security',
|
icon: 'developer_board',
|
||||||
// children: [
|
// children: [
|
||||||
// {state: 'appoinments-list', name: 'Appoinments List'},
|
// {state: 'appoinments-list', name: 'Appoinments List'},
|
||||||
// ]
|
// ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
state: 'appoinment',
|
state: 'business',
|
||||||
name: 'Business',
|
name: 'Business',
|
||||||
type: 'link',
|
type: 'link',
|
||||||
icon: 'security',
|
icon: 'markunread_mailbox',
|
||||||
// children: [
|
// children: [
|
||||||
// {state: 'business-list', name: 'Business List'},
|
// {state: 'business-list', name: 'Business List'},
|
||||||
// // {state: 'add-business-list', name: 'Add Business '},
|
// // {state: 'add-business-list', name: 'Add Business '},
|
||||||
@ -57,42 +57,48 @@ const HORIZONTALMENUITEMS = [
|
|||||||
// ]
|
// ]
|
||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
state: 'appoinment',
|
state: 'customers',
|
||||||
name: 'Customers',
|
name: 'Customers',
|
||||||
type: 'link',
|
type: 'link',
|
||||||
icon: 'security',
|
icon: 'directions_walk',
|
||||||
// children: [
|
// children: [
|
||||||
// {state: 'customers-list', name: 'Customers List'},
|
// {state: 'customers-list', name: 'Customers List'},
|
||||||
// ]
|
// ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
state: 'appoinment',
|
state: 'consultants',
|
||||||
name: 'Consultants',
|
name: 'Consultants',
|
||||||
type: 'link',
|
type: 'link',
|
||||||
icon: 'security',
|
icon: 'colorize',
|
||||||
// children: [
|
// children: [
|
||||||
// {state: 'consultants-list', name: 'Consultants List'},
|
// {state: 'consultants-list', name: 'Consultants List'},
|
||||||
// ]
|
// ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
state: 'appoinment',
|
state: 'users',
|
||||||
name: 'Users',
|
name: 'Users',
|
||||||
type: 'link',
|
type: 'link',
|
||||||
icon: 'security',
|
icon: 'person_pin',
|
||||||
// children: [
|
// children: [
|
||||||
// {state: 'user-list', name: 'Users List'},
|
// {state: 'user-list', name: 'Users List'},
|
||||||
// // {state: 'add-user-list', name: 'Add Users '},
|
// // {state: 'add-user-list', name: 'Add Users '},
|
||||||
// ]
|
// ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
state: 'appoinment',
|
state: 'services',
|
||||||
name: 'Services List',
|
name: 'Services List',
|
||||||
type: 'link',
|
type: 'link',
|
||||||
icon: 'security',
|
icon: 'strikethrough_s',
|
||||||
// children: [
|
// children: [
|
||||||
// {state: 'services-list', name: 'Services List'},
|
// {state: 'services-list', name: 'Services List'},
|
||||||
// // {state: 'add-user-list', name: 'Add Users '},
|
// // {state: 'add-user-list', name: 'Add Users '},
|
||||||
// ]
|
// ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
state: 'consultant-setting',
|
||||||
|
name: 'My Settings',
|
||||||
|
type: 'link',
|
||||||
|
icon: 'settings_system_daydream'
|
||||||
}
|
}
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@ -31,7 +31,7 @@ const MENUITEMS : Menu[] = [
|
|||||||
state: 'appoinments',
|
state: 'appoinments',
|
||||||
name: 'Appoinments',
|
name: 'Appoinments',
|
||||||
type: 'link',
|
type: 'link',
|
||||||
icon: 'security',
|
icon: 'developer_board',
|
||||||
// children: [
|
// children: [
|
||||||
// {state: 'appoinments-list', name: 'Appoinments List'},
|
// {state: 'appoinments-list', name: 'Appoinments List'},
|
||||||
// ]
|
// ]
|
||||||
@ -40,7 +40,7 @@ const MENUITEMS : Menu[] = [
|
|||||||
state: 'business',
|
state: 'business',
|
||||||
name: 'Business',
|
name: 'Business',
|
||||||
type: 'link',
|
type: 'link',
|
||||||
icon: 'security',
|
icon: 'markunread_mailbox',
|
||||||
// children: [
|
// children: [
|
||||||
// {state: 'business-list', name: 'Business List'},
|
// {state: 'business-list', name: 'Business List'},
|
||||||
// // {state: 'add-business-list', name: 'Add Business '},
|
// // {state: 'add-business-list', name: 'Add Business '},
|
||||||
@ -59,7 +59,7 @@ const MENUITEMS : Menu[] = [
|
|||||||
state: 'customers',
|
state: 'customers',
|
||||||
name: 'Customers',
|
name: 'Customers',
|
||||||
type: 'link',
|
type: 'link',
|
||||||
icon: 'security',
|
icon: 'directions_walk',
|
||||||
// children: [
|
// children: [
|
||||||
// {state: 'customers-list', name: 'Customers List'},
|
// {state: 'customers-list', name: 'Customers List'},
|
||||||
// ]
|
// ]
|
||||||
@ -68,7 +68,7 @@ const MENUITEMS : Menu[] = [
|
|||||||
state: 'consultants',
|
state: 'consultants',
|
||||||
name: 'Consultants',
|
name: 'Consultants',
|
||||||
type: 'link',
|
type: 'link',
|
||||||
icon: 'security',
|
icon: 'colorize',
|
||||||
// children: [
|
// children: [
|
||||||
// {state: 'consultants-list', name: 'Consultants List'},
|
// {state: 'consultants-list', name: 'Consultants List'},
|
||||||
// ]
|
// ]
|
||||||
@ -77,7 +77,7 @@ const MENUITEMS : Menu[] = [
|
|||||||
state: 'users',
|
state: 'users',
|
||||||
name: 'Users',
|
name: 'Users',
|
||||||
type: 'link',
|
type: 'link',
|
||||||
icon: 'security',
|
icon: 'person_pin',
|
||||||
// children: [
|
// children: [
|
||||||
// {state: 'user-list', name: 'Users List'},
|
// {state: 'user-list', name: 'Users List'},
|
||||||
// // {state: 'add-user-list', name: 'Add Users '},
|
// // {state: 'add-user-list', name: 'Add Users '},
|
||||||
@ -87,11 +87,17 @@ const MENUITEMS : Menu[] = [
|
|||||||
state: 'services',
|
state: 'services',
|
||||||
name: 'Services List',
|
name: 'Services List',
|
||||||
type: 'link',
|
type: 'link',
|
||||||
icon: 'security',
|
icon: 'strikethrough_s',
|
||||||
// children: [
|
// children: [
|
||||||
// {state: 'services-list', name: 'Services List'},
|
// {state: 'services-list', name: 'Services List'},
|
||||||
// // {state: 'add-user-list', name: 'Add Users '},
|
// // {state: 'add-user-list', name: 'Add Users '},
|
||||||
// ]
|
// ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
state: 'consultant-setting',
|
||||||
|
name: 'My Settings',
|
||||||
|
type: 'link',
|
||||||
|
icon: 'settings_system_daydream'
|
||||||
}
|
}
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user