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
close context menu while clicking for second time on view selection button
bsatarnejadab0ce6957f9d
diff --git a/frontend/src/app/shared/components/op-context-menu/handlers/wp-view-dropdown-menu.directive.ts b/frontend/src/app/shared/components/op-context-menu/handlers/wp-view-dropdown-menu.directive.tsindex ada8a167ced..37bcf738dcc 100644--- a/frontend/src/app/shared/components/op-context-menu/handlers/wp-view-dropdown-menu.directive.ts+++ b/frontend/src/app/shared/components/op-context-menu/handlers/wp-view-dropdown-menu.directive.ts@@ -51,9 +51,16 @@ export class WorkPackageViewDropdownMenuDirective extends OpContextMenuTrigger {super(elementRef, opContextMenu);}+ public isOpen = false;+protected open(evt:JQuery.TriggeredEvent) {- this.buildItems();- this.opContextMenu.show(this, evt);+ this.isOpen = !this.isOpen;+ if (this.isOpen) {+ this.buildItems();+ this.opContextMenu.show(this, evt);+ } else {+ this.opContextMenu.close();+ }}public get locals() {