diff --git a/frontend/src/app/components/nav-home/nav-home.component.ts b/frontend/src/app/components/nav-home/nav-home.component.ts index 35edad38d0..b7f80c2d35 100644 --- a/frontend/src/app/components/nav-home/nav-home.component.ts +++ b/frontend/src/app/components/nav-home/nav-home.component.ts @@ -44,7 +44,6 @@ export class NavHomeComponent implements OnInit, OnDestroy { // Set the current module name in the navbar this.onModuleChange(); - // Init the sidenav instance in sidebar service this.sideNavService.setSideNav(this.sidenav); diff --git a/frontend/src/app/components/sidenav-items/sidenav-service.ts b/frontend/src/app/components/sidenav-items/sidenav-service.ts index 4fc37d81be..4d15c09b3b 100644 --- a/frontend/src/app/components/sidenav-items/sidenav-service.ts +++ b/frontend/src/app/components/sidenav-items/sidenav-service.ts @@ -31,12 +31,19 @@ export class SideNavService { return this.currentModule; } - getHomeItem() : Module { + getHomeItem(): Module { let abs_path = '/'; - if (window.location.pathname) { // for GeoNature URL like https://demo.geonature.fr/geonature/ + if (window.location.pathname) { + // for GeoNature URL like https://demo.geonature.fr/geonature/ abs_path = window.location.pathname; } - return { module_url: abs_path, module_label: 'Accueil', module_picto: 'fa-home', id_module: 1, module_path: "/geonature"}; + return { + module_url: abs_path, + module_label: 'Accueil', + module_picto: 'fa-home', + id_module: 1, + module_path: '/geonature', + }; } toggleSideNav() { diff --git a/frontend/src/app/models/module.model.ts b/frontend/src/app/models/module.model.ts index 793da23355..1439c518d1 100644 --- a/frontend/src/app/models/module.model.ts +++ b/frontend/src/app/models/module.model.ts @@ -1,8 +1,8 @@ -export interface Module{ - id_module: number; - module_label: string; - module_picto?: string; - module_path:string; - module_doc_url?: string; - module_url?: string; -} \ No newline at end of file +export interface Module { + id_module: number; + module_label: string; + module_picto?: string; + module_path: string; + module_doc_url?: string; + module_url?: string; +}