Skip to content

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

[#41340] renaming and small fixes

Eric Schubertd71067c64dfd
diff --git a/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.component.ts b/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.component.ts
index 73b4b5ccdf0..a51dd73114c 100644
--- a/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.component.ts
@@ -129,9 +129,7 @@ export class WorkPackageSingleViewComponent extends UntilDestroyedMixin implemen
},
};
- public get isNewResource():boolean {
- return isNewResource(this.workPackage);
- }
+ public isNewResource:boolean;
protected firstTimeFocused = false;
@@ -156,6 +154,8 @@ export class WorkPackageSingleViewComponent extends UntilDestroyedMixin implemen
public ngOnInit() {
this.$element = jQuery(this.elementRef.nativeElement as HTMLElement);
+ this.isNewResource = isNewResource(this.workPackage);
+
const change = this.halEditing.changeFor<WorkPackageResource, WorkPackageChangeset>(this.workPackage);
this.resourceContextChange.next(this.contextFrom(change.projectedResource));
this.refresh(change);
diff --git a/frontend/src/app/shared/components/attachments/attachment-list/attachment-list-item.component.ts b/frontend/src/app/shared/components/attachments/attachment-list/attachment-list-item.component.ts
index 3865e3fa015..2258445f762 100644
--- a/frontend/src/app/shared/components/attachments/attachment-list/attachment-list-item.component.ts
+++ b/frontend/src/app/shared/components/attachments/attachment-list/attachment-list-item.component.ts
@@ -67,7 +67,7 @@ export class AttachmentListItemComponent implements OnInit {
return this.text.removeFile({ fileName: this.attachment.fileName });
}
- public $author:Observable<IUser>;
+ public author$:Observable<IUser>;
constructor(private readonly principalsResourceService:PrincipalsResourceService,
private readonly I18n:I18nService,
@@ -77,7 +77,7 @@ export class AttachmentListItemComponent implements OnInit {
ngOnInit():void {
const authorId = idFromLink(this.attachment._links.author.href);
- this.$author = this.principalsResourceService.query.selectEntity(authorId)
+ this.author$ = this.principalsResourceService.query.selectEntity(authorId)
.pipe(
switchMap((user) => (user ? of(user) : this.principalsResourceService.fetchUser(authorId))),
map((user) => user as IUser),
diff --git a/frontend/src/app/shared/components/attachments/attachment-list/attachment-list-item.html b/frontend/src/app/shared/components/attachments/attachment-list/attachment-list-item.html
index 93429b4497b..5532244719c 100644
--- a/frontend/src/app/shared/components/attachments/attachment-list/attachment-list-item.html
+++ b/frontend/src/app/shared/components/attachments/attachment-list/attachment-list-item.html
@@ -19,7 +19,7 @@
<op-authoring
class="work-package--attachments--info"
[createdOn]="attachment.createdAt"
- [author]="$author | async"
+ [author]="author$ | async"
[showAuthorAsLink]="false"
></op-authoring>
</a>