consultant-setting added
This commit is contained in:
parent
e3c69a630f
commit
4307745647
@ -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)
|
||||
},
|
||||
|
||||
]
|
||||
}, {
|
||||
|
||||
@ -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
|
||||
// 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");
|
||||
|
||||
@ -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'
|
||||
}
|
||||
|
||||
];
|
||||
|
||||
@ -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'
|
||||
}
|
||||
|
||||
];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user