@for (item of items; track item) {
-
+
+
+ @if (item.icon) {
+
+ }
+ {{ item.label }}
+
+
@for (menuItem of item.items; track menuItem) {
-
-
+
+
diff --git a/projects/admin/src/app/menu/menu-dashboard/menu-dashboard.component.scss b/projects/admin/src/app/menu/menu-dashboard/menu-dashboard.component.scss
new file mode 100644
index 000000000..ed959d938
--- /dev/null
+++ b/projects/admin/src/app/menu/menu-dashboard/menu-dashboard.component.scss
@@ -0,0 +1,30 @@
+/*
+ * RERO ILS UI
+ * Copyright (C) 2021-2024 RERO
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, version 3 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see .
+ */
+
+ admin-menu-dashboard {
+ p-card {
+ div.p-card-body {
+ @extend .px-1, .py-3;
+ }
+ }
+
+ p-tieredmenu {
+ div.p-tieredmenu {
+ border: 0;
+ }
+ }
+ }
diff --git a/projects/admin/src/app/menu/menu-definition/menu-app.ts b/projects/admin/src/app/menu/menu-definition/menu-app.ts
index 6938f50e5..4ef99eb59 100644
--- a/projects/admin/src/app/menu/menu-definition/menu-app.ts
+++ b/projects/admin/src/app/menu/menu-definition/menu-app.ts
@@ -460,9 +460,10 @@ export const MENU_APP: MenuItem[] = [
},
{
name: 'Migrations',
- router_link: ['/', 'migrations', 'records', 'migrations'],
- attributes: { id: 'permissions-menu' },
- extras: { iconClass: 'fa fa-cloud-upload' },
+ translateLabel: 'Migrations',
+ id: MENU_IDS.APP.ADMIN.MIGRATION,
+ icon: 'fa fa-cloud-upload',
+ routerLink: ['/', 'migrations', 'records', 'migrations'],
access: {
permissions: [PERMISSIONS.MIG_ACCESS]
}
diff --git a/projects/admin/src/app/menu/menu-definition/menu-ids.ts b/projects/admin/src/app/menu/menu-definition/menu-ids.ts
index e8a18ac3a..118a2e97d 100644
--- a/projects/admin/src/app/menu/menu-definition/menu-ids.ts
+++ b/projects/admin/src/app/menu/menu-definition/menu-ids.ts
@@ -29,6 +29,7 @@ export const MENU_IDS = {
CIRCULATION_POLICY: 'app-admin-circulation-policy',
ITEM_TYPE: 'app-admin-item-type',
LIBRARY: 'app-admin-library',
+ MIGRATION: 'app-admin-migration',
MY_LIBRARY: 'app-admin-library',
MY_ORGANISATION: 'app-admin-organisation',
PATRON_TYPE: 'app-admin-patron-type',
diff --git a/projects/admin/src/app/menu/menu-display/menu-display.component.html b/projects/admin/src/app/menu/menu-display/menu-display.component.html
index 7b6101d30..10c5fab8b 100644
--- a/projects/admin/src/app/menu/menu-display/menu-display.component.html
+++ b/projects/admin/src/app/menu/menu-display/menu-display.component.html
@@ -17,7 +17,13 @@
@if (item.routerLink && !item.url) {
-