OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Show existing custom actions only when the EE token is stil valid
Henriette Darge25c24e20cba1
diff --git a/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions.component.html b/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions.component.htmlindex 53e8081585e..26802ae507d 100644--- a/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions.component.html+++ b/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions.component.html@@ -1,6 +1,10 @@-<wp-custom-action- *ngFor="let action of actions; trackBy: trackByHref"- [workPackage]="workPackage"- [action]="action"- class="custom-action">-</wp-custom-action>+<ng-container+ *ngIf="!this.bannersService.eeShowBanners"+>+ <wp-custom-action+ *ngFor="let action of actions; trackBy: trackByHref"+ [workPackage]="workPackage"+ [action]="action"+ class="custom-action">+ </wp-custom-action>+</ng-container>diff --git a/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions.component.ts b/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions.component.tsindex 744bd54b26d..df8658281c3 100644--- a/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions.component.ts@@ -34,6 +34,7 @@ import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { CustomActionResource } from 'core-app/features/hal/resources/custom-action-resource';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';import { trackByHref } from 'core-app/shared/helpers/angular/tracking-functions';+import { BannersService } from 'core-app/core/enterprise/banners.service';@Component({selector: 'wp-custom-actions',@@ -50,6 +51,7 @@ export class WpCustomActionsComponent extends UntilDestroyedMixin implements OnIconstructor(readonly apiV3Service:ApiV3Service,readonly cdRef:ChangeDetectorRef,+ readonly bannersService:BannersService,) {super();}