7.14 Menu

24 сентября 2025 г.

17:09

Поиск this.setupMenu();

projects\qer\src\lib\qer.service.ts

Hide menu Items

  1. Скрытие из верхнего меню при нажатии на профиль

projects\qer-app-portal\src\app\app.component.html

  1. Скрытие справки из верхнего меню

projects\qbm\src\lib\mast-head\mast-head.component.html

  1. Сокрытие во вкладке «Запросы» скрыть модули «Новый запрос»

projects\qer\src\lib\new-request\new-request.module.ts

и «Пакеты продуктов».

projects\qer\src\lib\itshop-pattern\itshop-pattern.module.ts

  1. Сокрытие Attestation в главном меню

projects\att\src\lib\init.service.ts

Закомментить //this.setupMenu();

  1. Скрыть в меню Обязанности

projects\qer\src\lib\team-responsibilities\team-responsibilities.module.ts

export class TeamResponsibilitiesModule {

constructor(private readonly menuService: MenuService, private readonly extService: ExtService, logger: ClassloggerService) {

logger.info(this, '▶️ TeamResponsibilitiesModule loaded');

//this.setupMenu();

this.extService.register('Dashboard-SmallTiles', { instance: TeamResponsibilityTileComponent });

}

projects\tsb\src\lib\init.service.ts

this.addRoutes(routes);

//this.setupMenu(); //Добавлено в рамках ТЗ на доработки ITShop от 18.09.2025

  1. Скрыть HyperView в профиле

projects\qer\src\lib\profile\profile.component.html

\<mat-tab-group *ngIf="!mailToBeUnsubscribed; else unsubscribeDisplay" [(selectedIndex)]="tabIndex">

\<!--\<mat-tab label="{{ '#LDS#Heading Hyperview' | translate }}">

\<ng-template matTabContent>

\<mat-card class="no-grow" *ngIf="canShowEntitlementsHyperview">

\<mat-card-content class="profile-hyperview">

\<mat-radio-group [(ngModel)]="isShowEntitlementsHyperview">

\<mat-radio-button [value]="false">

\<span translate>#LDS#Identity overview\</span>

\</mat-radio-button>

\<mat-radio-button [value]="true">

\<span translate>#LDS#Assigned entitlements\</span>

\</mat-radio-button>

\</mat-radio-group>

\</mat-card-content>

\</mat-card>

\<imx-object-hyperview [objectType]="'Person'" [objectUid]="userUid" [hyperviewName]="isShowEntitlementsHyperview ? 'VI_Person_Person_Entitlements_Overview' : ''">

\</imx-object-hyperview>

\</ng-template>

\</mat-tab> -->

\<mat-tab label="{{ '#LDS#Heading Main Data' | translate }}" data-imx-identifier="profile-main-data">

  1. Скрыть возможность создания отчетов (вкладку в целом) для всех, кроме администраторов IDM

В projects\rps\src\lib\reports\edit-report.module.ts

export class EditReportModule {

constructor(

private readonly menuService: MenuService,

private readonly rpsPermissionService: RpsPermissionsService //Добавлено в рамках ТЗ на доработки ITShop от 18.09.2025

) {

this.initializeMenu(); //Добавлено в рамках ТЗ на доработки ITShop от 18.09.2025

}

//Добавлено в рамках ТЗ на доработки ITShop от 18.09.2025

private async initializeMenu(): Promise\<void> {

const isInGroup = false;

const isRpsAdmin = await this.rpsPermissionService.isRpsAdmin();

//console.log('isRpsAdmin: ', isRpsAdmin);

if (isRpsAdmin) {

this.setupMenu();

}

}