Commit a04ed934 by Ooh-Ao

no message

parent 7ebf57cb
......@@ -66,7 +66,7 @@ export class LoginPageComponent {
this.authservice
.loginWithEmail(this.email, this.password)
.then(() => {
this.router.navigate(['/dashboard/sales']);
this.router.navigate(['/self-evaluation']);
console.clear();
})
.catch((_error: any) => {
......@@ -109,7 +109,7 @@ export class LoginPageComponent {
this.loginForm.controls['username'].value === 'spruko@admin.com' &&
this.loginForm.controls['password'].value === 'sprukoadmin'
) {
this.router.navigate(['/dashboard/sales']);
this.router.navigate(['/self-evaluation']);
} else {
this.error = 'Please check email and passowrd';
}
......
......@@ -87,6 +87,17 @@ export class NavService implements OnDestroy {
MENUITEMS: Menu[] = [
{
title: 'การประเมินผล',
type: 'sub',
selected: false,
active: false,
path: '/supervisor-evaluation',
children: [
{ path: '/self-evaluation', title: 'ประเมินตนเอง', type: 'link' },
{ path: '/supervisor-evaluation', title: 'ประเมินโดยหัวหน้า', type: 'link' },
],
},
{
title: 'การจัดการข้อมูลองค์กร',
type: 'sub',
selected: false,
......@@ -148,17 +159,7 @@ export class NavService implements OnDestroy {
],
},
{
title: 'การประเมินผล',
type: 'sub',
selected: false,
active: false,
path: '/supervisor-evaluation',
children: [
{ path: '/self-evaluation', title: 'ประเมินตนเอง', type: 'link' },
{ path: '/supervisor-evaluation', title: 'ประเมินโดยหัวหน้า', type: 'link' },
],
},
];
// Array
items = new BehaviorSubject<Menu[]>(this.MENUITEMS);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment