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
Migrate comments, docs to Control Flow syntax
Alexander Brandon Colescb764ba06a70
diff --git a/docs/development/concepts/inline-editing/README.md b/docs/development/concepts/inline-editing/README.mdindex 604e217f748..5805da6ff99 100644--- a/docs/development/concepts/inline-editing/README.md+++ b/docs/development/concepts/inline-editing/README.md@@ -232,11 +232,12 @@ An example where this comes into play is the [`CustomText`](https://github.com/oOn the example of a work package, this following code snippet would create an edit form for a given work package resource and an attribute for the `subject` attribute of that work package.```html-<edit-form *ngIf="workPackage" [resource]="workPackage">- <op-editable-attribute-field [resource]="workPackage"- fieldName="subject">- </op-editable-attribute-field>-</edit-form>+@if (workPackage) {+ <edit-form [resource]="workPackage">+ <op-editable-attribute-field [resource]="workPackage" fieldName="subject">+ </op-editable-attribute-field>+ </edit-form>+}```While this doesn't take care of any labels or styling, it will already provide error handling for the given field and allow proper saving of the changes to the resource.diff --git a/docs/development/concepts/translations/README.md b/docs/development/concepts/translations/README.mdindex c78edd4f9ad..5fe61cc1a04 100644--- a/docs/development/concepts/translations/README.md+++ b/docs/development/concepts/translations/README.md@@ -93,9 +93,11 @@ Then you can use them as below in your template:<span class="button—text" [innerText]=”text.saveButton”></span></button>-<div *ngIf="news.author" class="news-author">- <span [innerText]="text.addedBy(news)"></span>-</div>+@if (news.author) {+ <div class="news-author">+ <span [innerText]="text.addedBy(news)"></span>+ </div>+}```For more information on formatting and other helpers of the `I18n.js` library, see [github.com/fnando/i18n-js](https://github.com/fnando/i18n-js)diff --git a/frontend/src/app/spot/components/form-field/form-field.component.ts b/frontend/src/app/spot/components/form-field/form-field.component.tsindex 836cdb03674..2838db2180b 100644--- a/frontend/src/app/spot/components/form-field/form-field.component.ts+++ b/frontend/src/app/spot/components/form-field/form-field.component.ts@@ -56,7 +56,7 @@ export class SpotFormFieldComponent {/*** Hides the input. This is a utility input for usage of `spot-form-field` in dynamic forms.- * Outside of dynamic forms, you should be hiding inputs via `*ngIf` or other methods.+ * Outside of dynamic forms, you should be hiding inputs via `@if` or other methods.*/@Input() hidden = false;diff --git a/frontend/src/app/spot/components/selector-field/selector-field.component.ts b/frontend/src/app/spot/components/selector-field/selector-field.component.tsindex d588a7e89b7..e0ae36b12e3 100644--- a/frontend/src/app/spot/components/selector-field/selector-field.component.ts+++ b/frontend/src/app/spot/components/selector-field/selector-field.component.ts@@ -61,7 +61,7 @@ export class SpotSelectorFieldComponent {/*** Hides the input. This is a utility input for usage of `spot-form-field` in dynamic forms.- * Outside of dynamic forms, you should be hiding inputs via `*ngIf` or other methods.+ * Outside of dynamic forms, you should be hiding inputs via `@if` or other methods.*/@Input() hidden = false;