Browse Source

fix

master
drfelfel 1 year ago
parent
commit
cce441c446
3 changed files with 8 additions and 7 deletions
  1. +1
    -1
      src/app/app.component.ts
  2. +6
    -5
      src/database/drawer.list.ts
  3. +1
    -1
      src/routes/auth/app/app.component.ts

+ 1
- 1
src/app/app.component.ts View File

@ -17,7 +17,7 @@ export class AppComponent implements OnInit {
if (this.rayconnect.user.uid != "guest") {
await this.rayconnect.setProfile();
if ((this.router.url === "/") || (this.router.url === "/auth")) {
this.router.navigate(["/panel/dashboard"])
this.router.navigate(["/panel/volunteers"])
}
} else {

+ 6
- 5
src/database/drawer.list.ts View File

@ -5,7 +5,7 @@ export interface Item {
}
export const items: Item[] = [
{
/*{
title: 'پیشخوان',
icon: 'home',
path: '/panel/dashboard'
@ -20,11 +20,11 @@ export const items: Item[] = [
icon: 'insert_chart',
path: '/panel/reports'
},
/*{
{
title: 'کاربران رایدا',
icon: 'person',
path: '/panel/users'
},*/
},
{
title: 'کاربران سیستم',
icon: 'admin_panel_settings',
@ -40,6 +40,7 @@ export const items: Item[] = [
icon: 'school',
path: '/panel/majors'
},
*/
{
title: 'روند ثبت نام داوطلبین',
icon: 'group',
@ -51,9 +52,9 @@ export const items: Item[] = [
icon: 'exit_to_app',
path: '/panel/exit'
},
{
/* {
title: 'گفتگو با داوطلبین',
icon: 'forum',
path: '/panel/chat'
}
}*/
]

+ 1
- 1
src/routes/auth/app/app.component.ts View File

@ -28,7 +28,7 @@ export class AppComponent implements OnInit {
this.snackbar.open(res['message'], 'باشه', { duration: 3000, direction: 'rtl' });
if (res['status'] == true) {
await this.rayconnect.setToken(res['data']['token']);
this.router.navigate(['/panel/dashboard']);
this.router.navigate(['/panel/volunteers']);
} else
this.form.enable();
} catch (error) {

Loading…
Cancel
Save