[develop]: Add link to app module and set specific ratio of sidebar menu item

This commit is contained in:
Konstantinos Triantafyllou 2024-06-04 12:57:32 +03:00
parent 6c48881500
commit 6e393c031d
4 changed files with 5 additions and 6 deletions

View File

@ -19,7 +19,6 @@ import {
NotificationConfiguration
} from "./openaireLibrary/notifications/notifications-sidebar/notifications-sidebar.component";
import {SidebarBaseComponent} from "./openaireLibrary/dashboard/sharedComponents/sidebar/sidebar-base.component";
import {link} from "./openaireLibrary/utils/icons/icons";
@Component({
@ -288,7 +287,7 @@ export class AppComponent extends SidebarBaseComponent implements OnInit {
this.adminMenuItems.push(new MenuItem("admin-tools", "Pages & Entities", "", "/admin/" + this.stakeholder.alias + "/admin-tools/pages", false, [], [], {}, {name: 'description'}, null, "uk-visible@m", "/admin/" + this.stakeholder.alias + "/admin-tools"));
}
if(this.stakeholder.type == "organization") {
this.adminMenuItems.push(new MenuItem("claim", "Link results", "", "/admin/" + this.stakeholder.alias + "/claims/link", false, [], [], {}, {svg: link.data}, null, "uk-visible@m", "/admin/" + this.stakeholder.alias + "/claims/link"));
this.adminMenuItems.push(new MenuItem("claim", "Link results", "", "/admin/" + this.stakeholder.alias + "/claims/link", false, [], [], {}, {name: 'link', ratio: 1}, null, "uk-visible@m", "/admin/" + this.stakeholder.alias + "/claims/link"));
}
}
this.backItem = new MenuItem("back", "Manage profiles", "", "/admin", false, [], null, {}, {name: 'west'});

View File

@ -27,7 +27,7 @@ import {
import {LoginGuard} from "./openaireLibrary/login/loginGuard.guard";
import {IconsModule} from "./openaireLibrary/utils/icons/icons.module";
import {IconsService} from "./openaireLibrary/utils/icons/icons.service";
import {incognito} from "./openaireLibrary/utils/icons/icons";
import {incognito, link} from "./openaireLibrary/utils/icons/icons";
import {AdminDashboardGuard} from "./openaireLibrary/monitor-admin/utils/adminDashboard.guard";
import {CacheIndicatorsModule} from "./openaireLibrary/monitor-admin/utils/cache-indicators/cache-indicators.module";
import {CustomRouteReuseStrategy} from "./openaireLibrary/shared/custom-route-reuse-strategy";
@ -73,6 +73,6 @@ import {RouteReuseStrategy} from "@angular/router";
//
export class AppModule {
constructor(private iconsService: IconsService) {
this.iconsService.registerIcons([incognito])
this.iconsService.registerIcons([incognito, link])
}
}

@ -1 +1 @@
Subproject commit 35276059f1e419a53604f2e641daa0a5c6d0d5cb
Subproject commit 9ae1ee928a7c467540cefe3ffea96efe54a91456

@ -1 +1 @@
Subproject commit e48bf941bcdc567a3d09826b5686e70d43fafd46
Subproject commit c5ba8700be5b8fcf98522fe167246281545d7985