Add theme switching

More reactivity in Library Browser
This commit is contained in:
aditya.chandel
2024-12-18 11:34:24 -07:00
parent 61e9580409
commit 71f5927364
24 changed files with 239 additions and 132 deletions
@@ -1,4 +1,4 @@
import {Component, computed, OnInit} from '@angular/core';
import {Component, computed, OnInit, Signal, WritableSignal} from '@angular/core';
import {AppMenuitemComponent} from './app.menuitem.component';
import {NgForOf, NgIf} from '@angular/common';
import {MenuModule} from 'primeng/menu';
@@ -12,7 +12,7 @@ import {Library} from '../../model/library.model';
})
export class AppMenuComponent implements OnInit {
home: any[] = [];
libraries: any;
libraries: Signal<Library[]>;
libraryMenu = computed(() => [
{