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
Add missing negations
Mir Bhatiad6b79ea12f7d
diff --git a/frontend/src/app/core/enterprise/banners.service.ts b/frontend/src/app/core/enterprise/banners.service.tsindex a342b7ab1ff..1060750350e 100644--- a/frontend/src/app/core/enterprise/banners.service.ts+++ b/frontend/src/app/core/enterprise/banners.service.ts@@ -74,7 +74,7 @@ export class BannersService {public async conditional(feature:string, featureAvailable?:() => void, featureNotAvailable?:() => void) {await this.configuration.initialize();- if (this.allowsTo(feature)) {+ if (!this.allowsTo(feature)) {this.callMaybe(featureAvailable);} else {this.callMaybe(featureNotAvailable);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 95ceb504c89..2d823d64f9c 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@@ -48,7 +48,7 @@ export class WpCustomActionsComponent extends UntilDestroyedMixin implements OnIactions:CustomActionResource[] = [];- available = !this.bannersService.allowsTo('custom_actions');+ available = this.bannersService.allowsTo('custom_actions');constructor(readonly apiV3Service:ApiV3Service,