diff --git a/src/app/layout/core/app.configurator.ts b/src/app/layout/core/app.configurator.ts index 6b0a3a2..b9cf6be 100644 --- a/src/app/layout/core/app.configurator.ts +++ b/src/app/layout/core/app.configurator.ts @@ -1,5 +1,5 @@ import { CommonModule, isPlatformBrowser } from '@angular/common'; -import { Component, computed, inject, PLATFORM_ID } from '@angular/core'; +import { Component, computed, inject, PLATFORM_ID, Signal, signal } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { $t, updatePreset, updateSurfacePalette } from '@primeng/themes'; import Aura from '@primeng/themes/aura'; @@ -8,6 +8,8 @@ import Nora from '@primeng/themes/nora'; import { PrimeNG } from 'primeng/config'; import { SelectButtonModule } from 'primeng/selectbutton'; import { LayoutService } from '../service/layout.service'; +import { Router } from '@angular/router'; +import { Subscription } from 'rxjs'; const presets = { Aura, @@ -79,7 +81,7 @@ declare type SurfacesType = { Presets -
+
Menu Mode
@@ -90,6 +92,9 @@ declare type SurfacesType = { } }) export class AppConfigurator { + + router = inject(Router); + config: PrimeNG = inject(PrimeNG); layoutService: LayoutService = inject(LayoutService); @@ -100,6 +105,8 @@ export class AppConfigurator { presets = Object.keys(presets); + showMenuModeButton = signal(!this.router.url.includes('auth')); + menuModeOptions = [ { label: 'Static', value: 'static' }, { label: 'Overlay', value: 'overlay' }