From 481e712edddbfeaac7e4694c0cd54091f0357af9 Mon Sep 17 00:00:00 2001 From: mchouliara Date: Wed, 28 Aug 2024 13:18:43 +0300 Subject: [PATCH] plan blueprint listing > add checks for row actions --- .../plan-blueprint-listing.component.html | 8 ++--- .../plan-blueprint-listing.component.ts | 29 ++++++++++++++++--- 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/frontend/src/app/ui/admin/plan-blueprint/listing/plan-blueprint-listing.component.html b/frontend/src/app/ui/admin/plan-blueprint/listing/plan-blueprint-listing.component.html index 220115687..c2f6d760f 100644 --- a/frontend/src/app/ui/admin/plan-blueprint/listing/plan-blueprint-listing.component.html +++ b/frontend/src/app/ui/admin/plan-blueprint/listing/plan-blueprint-listing.component.html @@ -85,10 +85,10 @@ more_horiz - - - - diff --git a/frontend/src/app/ui/admin/plan-blueprint/listing/plan-blueprint-listing.component.ts b/frontend/src/app/ui/admin/plan-blueprint/listing/plan-blueprint-listing.component.ts index 2ff2abf88..2db6cbb87 100644 --- a/frontend/src/app/ui/admin/plan-blueprint/listing/plan-blueprint-listing.component.ts +++ b/frontend/src/app/ui/admin/plan-blueprint/listing/plan-blueprint-listing.component.ts @@ -30,6 +30,7 @@ import { takeUntil } from 'rxjs/operators'; import { nameof } from 'ts-simple-nameof'; import { ImportPlanBlueprintDialogComponent } from './import-plan-blueprint/import-plan-blueprint.dialog.component'; import { RouterUtilsService } from '@app/core/services/router/router-utils.service'; +import { AppPermission } from '@app/core/common/enum/permission.enum'; @Component({ @@ -93,6 +94,26 @@ export class PlanBlueprintListingComponent extends BaseListingComponent this.httpErrorHandlingService.handleBackedRequestError(error)); } - import(): void { + protected import(): void { const dialogRef = this.dialog.open(ImportPlanBlueprintDialogComponent, { restoreFocus: false, data: {