From 1d3884848079cfa708d98ddc0622ad9a0fc44056 Mon Sep 17 00:00:00 2001 From: Snehasish Date: Tue, 19 Nov 2024 16:43:15 +0530 Subject: [PATCH] fix:replacing page title Dashboard to Home --- src/app/core/mock-data/sidemenu-item.data.ts | 2 +- src/app/core/mock-data/sidemenu.data.ts | 8 ++++---- .../shared/components/sidemenu/sidemenu.component.spec.ts | 2 +- src/app/shared/components/sidemenu/sidemenu.component.ts | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/app/core/mock-data/sidemenu-item.data.ts b/src/app/core/mock-data/sidemenu-item.data.ts index ba10186cdf..4f99331d48 100644 --- a/src/app/core/mock-data/sidemenu-item.data.ts +++ b/src/app/core/mock-data/sidemenu-item.data.ts @@ -3,7 +3,7 @@ import deepFreeze from 'deep-freeze-strict'; import { SidemenuItem } from '../models/sidemenu-item.model'; export const sidemenuItemData1: SidemenuItem = deepFreeze({ - title: 'Dashboard', + title: 'Home', isVisible: true, icon: 'dashboard', route: ['/', 'enterprise', 'my_dashboard'], diff --git a/src/app/core/mock-data/sidemenu.data.ts b/src/app/core/mock-data/sidemenu.data.ts index ba038cc626..5293abab7f 100644 --- a/src/app/core/mock-data/sidemenu.data.ts +++ b/src/app/core/mock-data/sidemenu.data.ts @@ -4,7 +4,7 @@ import { SidemenuItem } from '../models/sidemenu-item.model'; export const sidemenuData1 = deepFreeze([ { - title: 'Dashboard', + title: 'Home', isVisible: true, icon: 'dashboard', route: ['/', 'enterprise', 'my_dashboard'], @@ -25,7 +25,7 @@ export const sidemenuData1 = deepFreeze([ export const PrimaryOptionsRes1: Partial[] = deepFreeze([ { - title: 'Dashboard', + title: 'Home', isVisible: true, icon: 'dashboard', route: ['/', 'enterprise', 'my_dashboard'], @@ -91,7 +91,7 @@ export const PrimaryOptionsRes2: Partial[] = deepFreeze([ export const getPrimarySidemenuOptionsRes1 = deepFreeze([ { - title: 'Dashboard', + title: 'Home', isVisible: true, icon: 'dashboard', route: ['/', 'enterprise', 'my_dashboard'], @@ -158,7 +158,7 @@ export const getSecondarySidemenuOptionsRes1 = deepFreeze([ export const setSideMenuRes: Partial[] = deepFreeze([ { - title: 'Dashboard', + title: 'Home', isVisible: true, icon: 'dashboard', route: ['/', 'enterprise', 'my_dashboard'], diff --git a/src/app/shared/components/sidemenu/sidemenu.component.spec.ts b/src/app/shared/components/sidemenu/sidemenu.component.spec.ts index 145803e99d..6d78161b4c 100644 --- a/src/app/shared/components/sidemenu/sidemenu.component.spec.ts +++ b/src/app/shared/components/sidemenu/sidemenu.component.spec.ts @@ -312,7 +312,7 @@ describe('SidemenuComponent', () => { component.orgSettings.advance_requests.enabled = true; const resData = [ { - title: 'Dashboard', + title: 'Home', isVisible: true, icon: 'dashboard', route: ['/', 'enterprise', 'my_dashboard'], diff --git a/src/app/shared/components/sidemenu/sidemenu.component.ts b/src/app/shared/components/sidemenu/sidemenu.component.ts index d9c0c16ea1..0a9d86bf85 100644 --- a/src/app/shared/components/sidemenu/sidemenu.component.ts +++ b/src/app/shared/components/sidemenu/sidemenu.component.ts @@ -1,7 +1,7 @@ import { Component, OnInit, Output, EventEmitter } from '@angular/core'; import * as Sentry from '@sentry/angular'; import { Observable, from, forkJoin, concat, combineLatest } from 'rxjs'; -import { map, shareReplay } from 'rxjs/operators'; +import { shareReplay } from 'rxjs/operators'; import { DeviceService } from 'src/app/core/services/device.service'; import { RouterAuthService } from 'src/app/core/services/router-auth.service'; import { OrgUserService } from 'src/app/core/services/org-user.service'; @@ -217,7 +217,7 @@ export class SidemenuComponent implements OnInit { const primaryOptions = [ { - title: 'Dashboard', + title: 'Home', isVisible: true, icon: 'dashboard', route: ['/', 'enterprise', 'my_dashboard'], @@ -296,7 +296,7 @@ export class SidemenuComponent implements OnInit { getPrimarySidemenuOptionsOffline(): Partial[] { return [ { - title: 'Dashboard', + title: 'Home', isVisible: true, icon: 'dashboard', route: ['/', 'enterprise', 'my_dashboard'],