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
fix clicking comment edit
ulfertsc69441736939
diff --git a/config/locales/js-en.yml b/config/locales/js-en.ymlindex e556e869884..4ee9b0b80b9 100644--- a/config/locales/js-en.yml+++ b/config/locales/js-en.yml@@ -232,8 +232,6 @@ en:image_alt_text: "Board teaser image"learn_about: "Learn more about Agile Boards"label_activate: "Activate"- label_activity_no: "Activity entry number %{activityNo}"- label_activity_with_comment_no: "Activity entry number %{activityNo}. Has a user comment."label_add_column_after: "Add column after"label_add_column_before: "Add column before"label_add_columns: "Add columns"diff --git a/frontend/src/app/components/work-packages/work-package-comment/work-package-comment-field-handler.ts b/frontend/src/app/components/work-packages/work-package-comment/work-package-comment-field-handler.tsindex d6fa144407f..8e3bfc52034 100644--- a/frontend/src/app/components/work-packages/work-package-comment/work-package-comment-field-handler.ts+++ b/frontend/src/app/components/work-packages/work-package-comment/work-package-comment-field-handler.ts@@ -36,11 +36,6 @@ export abstract class WorkPackageCommentFieldHandler extends EditFieldHandler im*/public abstract get htmlId():string;- /**- * Required field label translation- */- public abstract get fieldLabel():string;-public abstract get workPackage():WorkPackageResource;public reset(withText:string = '') {diff --git a/frontend/src/app/components/wp-activity/activity-entry.component.html b/frontend/src/app/components/wp-activity/activity-entry.component.htmlindex 10bf2ecf289..a6a6b70fde5 100644--- a/frontend/src/app/components/wp-activity/activity-entry.component.html+++ b/frontend/src/app/components/wp-activity/activity-entry.component.html@@ -3,14 +3,12 @@<revision-activity *ngSwitchCase="'Revision'"[workPackage]="workPackage"[activity]="activity"- [activityNo]="activityNo"- [activityLabel]="activityLabel">+ [activityNo]="activityNo"></revision-activity><user-activity *ngSwitchDefault[workPackage]="workPackage"[activity]="activity"[activityNo]="activityNo"- [activityLabel]="activityLabel"[isInitial]="isInitial"></user-activity></div>diff --git a/frontend/src/app/components/wp-activity/activity-entry.component.ts b/frontend/src/app/components/wp-activity/activity-entry.component.tsindex 87b64e6c5b1..5985620c4a5 100644--- a/frontend/src/app/components/wp-activity/activity-entry.component.ts+++ b/frontend/src/app/components/wp-activity/activity-entry.component.ts@@ -44,7 +44,6 @@ export class ActivityEntryComponent implements OnInit {public projectId:string;public activityType:string;- public activityLabel:string;constructor(readonly PathHelper:PathHelperService,readonly I18n:I18nService) {@@ -55,7 +54,6 @@ export class ActivityEntryComponent implements OnInit {this.projectId = this.workPackage.project.idFromLink;this.activityType = this.activity._type;- this.activityLabel = this.I18n.t('js.label_activity_no', {activityNo: this.activityNo});}}diff --git a/frontend/src/app/components/wp-activity/revision/revision-activity.component.html b/frontend/src/app/components/wp-activity/revision/revision-activity.component.htmlindex 08276903364..48e76ab6f2b 100644--- a/frontend/src/app/components/wp-activity/revision/revision-activity.component.html+++ b/frontend/src/app/components/wp-activity/revision/revision-activity.component.html@@ -1,7 +1,5 @@<div class="work-package-details-activities-activity-contents"- *ngIf="workPackage"- tabindex="0"- [attr.aria-label]="activityLabel">+ *ngIf="workPackage"><div class="comments-number"><activity-link [workPackage]="workPackage"[activityNo]="activityNo">diff --git a/frontend/src/app/components/wp-activity/revision/revision-activity.component.ts b/frontend/src/app/components/wp-activity/revision/revision-activity.component.tsindex 0e1f3037ec5..b1d272ad90a 100644--- a/frontend/src/app/components/wp-activity/revision/revision-activity.component.ts+++ b/frontend/src/app/components/wp-activity/revision/revision-activity.component.ts@@ -43,7 +43,6 @@ export class RevisionActivityComponent implements OnInit {@Input() public workPackage:WorkPackageResource;@Input() public activity:any;@Input() public activityNo:number;- @Input() public activityLabel:string;public userId:string | number;public userName:string;diff --git a/frontend/src/app/components/wp-activity/user/user-activity.component.html b/frontend/src/app/components/wp-activity/user/user-activity.component.htmlindex 165efcb2cf7..b4d78915e13 100644--- a/frontend/src/app/components/wp-activity/user/user-activity.component.html+++ b/frontend/src/app/components/wp-activity/user/user-activity.component.html@@ -1,7 +1,5 @@<div class="work-package-details-activities-activity-contents"- tabindex="0"*ngIf="workPackage"- [attr.aria-label]="fieldLabel || activityLabel"(mouseenter)="focus()"(mouseleave)="blur()"><user-avatar *ngIf="userName"diff --git a/frontend/src/app/components/wp-activity/user/user-activity.component.ts b/frontend/src/app/components/wp-activity/user/user-activity.component.tsindex ebe5e26836e..e54a174f634 100644--- a/frontend/src/app/components/wp-activity/user/user-activity.component.ts+++ b/frontend/src/app/components/wp-activity/user/user-activity.component.ts@@ -59,7 +59,6 @@ export class UserActivityComponent extends WorkPackageCommentFieldHandler implem@Input() public workPackage:WorkPackageResource;@Input() public activity:HalResource;@Input() public activityNo:number;- @Input() public activityLabel:string;@Input() public isInitial:boolean;public userCanEdit = false;@@ -71,7 +70,6 @@ export class UserActivityComponent extends WorkPackageCommentFieldHandler implempublic userPath:string | null;public userLabel:string;public userAvatar:string;- public fieldLabel:string;public details:any[] = [];public isComment:boolean;public isBcfComment:boolean;@@ -118,14 +116,6 @@ export class UserActivityComponent extends WorkPackageCommentFieldHandler implemthis.userCanEdit = !!this.activity.update;this.userCanQuote = !!this.workPackage.addComment;- if (this.postedComment) {- this.fieldLabel = this.I18n.t('js.label_activity_with_comment_no', {- activityNo: this.activityNo- });- } else {- this.fieldLabel = this.I18n.t('js.label_activity_no', {activityNo: this.activityNo});- }-this.$element.bind('focusin', this.focus.bind(this));this.$element.bind('focusout', this.blur.bind(this));