Improve the UI of the shelf edit dialog

This commit is contained in:
aditya.chandel
2025-12-03 20:11:48 -07:00
parent bb31f67d80
commit 9281fd9559
7 changed files with 285 additions and 29 deletions
@@ -200,6 +200,7 @@ export class MagicShelfComponent implements OnInit {
shelfId: number | null = null;
isAdmin: boolean = false;
editMode!: boolean;
libraryService = inject(LibraryService);
magicShelfService = inject(MagicShelfService);
@@ -216,6 +217,7 @@ export class MagicShelfComponent implements OnInit {
ngOnInit(): void {
this.isAdmin = this.userService.getCurrentUser()?.permissions.admin ?? false;
const id = this.config?.data?.id;
this.editMode = !!this.config?.data?.editMode;
if (id) {
this.shelfId = id;