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 sendNotifications checkbox to disable notifications in template
Oliver Günther40133857750c
diff --git a/frontend/src/app/features/projects/components/new-project/new-project.component.ts b/frontend/src/app/features/projects/components/new-project/new-project.component.tsindex 9f4bb481573..8b23833c1e1 100644--- a/frontend/src/app/features/projects/components/new-project/new-project.component.ts+++ b/frontend/src/app/features/projects/components/new-project/new-project.component.ts@@ -43,7 +43,6 @@ export class NewProjectComponent extends UntilDestroyedMixin implements OnInit {hiddenFields:string[] = ['identifier',- 'sendNotifications','active',];@@ -114,6 +113,11 @@ export class NewProjectComponent extends UntilDestroyedMixin implements OnInit {}private isHiddenField(key:string|undefined):boolean {+ // We explictly want to show the sendNotifications param+ if (key === '_meta.sendNotifications') {+ return false;+ }+return !!key && (this.hiddenFields.includes(key) || this.isMeta(key));}diff --git a/spec/features/projects/template_spec.rb b/spec/features/projects/template_spec.rbindex 7620ac51ccb..40298ffe76c 100644--- a/spec/features/projects/template_spec.rb+++ b/spec/features/projects/template_spec.rb@@ -100,7 +100,9 @@ describe 'Project templates', type: :feature, js: true do# It does not show the copy meta flagsexpect(page).to have_no_selector('[data-qa-field-name="copyMembers"]')- expect(page).to have_no_selector('[data-qa-field-name="sendNotifications"]')++ # But shows the send notifications field+ expect(page).to have_selector('[data-qa-field-name="sendNotifications"]')# Update status to off trackstatus_field.select_option 'Off track'