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

Merge branch 'dev' into implementation/42160-add-download-file-direct-action-to-hover-menu

Eric Schubertd4c6ddef7df0
diff --cc config/locales/en.yml
index f6cc37c66ef,a39ab523304..0ca7b246fb4
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@@ -309,14 -311,14 +311,14 @@@ en
upsale:
title: Placeholder users
description: >
- There are multiple scenarios where you want to assign work to people that are not member of your project.
- It could simply be that you still need to hire the correct person for the job. Or you just don't want to give
- that person access to the project's information but still want track tasks assigned to that person.
+ Placeholder users are a way to assign work packages to users who are not part of your project.
+ They can be useful in a range of scenarios; for example, if you need to track tasks for a resource that is not yet named or available,
+ or if you don’t want to give that person access to OpenProject but still want track tasks assigned to them.
prioritiies:
edit:
- priority_color_text: |
- Click to assign or change the color of this priority.
- It can be used for highlighting work packages in the table.
+ priority_color_text: |
+ Click to assign or change the color of this priority.
+ It can be used for highlighting work packages in the table.
reportings:
index:
diff --cc frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.component.ts
index 41fdbc36ea6,616d538d0ae..29f8483e431
--- a/frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.component.ts
+++ b/frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.component.ts
@@@ -55,12 -55,14 +55,12 @@@ import
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class FileLinkListItemComponent implements OnInit, AfterViewInit {
- @Input() public resource:HalResource;
-
@Input() public fileLink:IFileLink;
- @Input() public index:number;
-
@Input() public allowEditing = false;
+ @Input() public disabled = true;
+
@Output() public removeFileLink = new EventEmitter<void>();
@ViewChild('avatar') avatar:ElementRef;
@@@ -100,8 -101,7 +100,9 @@@
this.fileLinkIcon = getIconForMimeType(this.originData.mimeType);
+ this.text.title.downloadFileLink = this.i18n.t('js.label_download_file', { fileName: this.fileLink.originData.name });
- this.showFloatingActions = this.fileLink._links.permission.href === fileLinkViewAllowed;
++
+ this.viewAllowed = this.fileLink._links.permission.href === fileLinkViewAllowed;
}
ngAfterViewInit():void {
diff --cc frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.html
index 0d180459092,b77851c8eac..2e63ed3091b
--- a/frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.html
+++ b/frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.html
@@@ -26,16 -27,9 +27,16 @@@
></div>
</a>
<div
- *ngIf="showFloatingActions"
+ *ngIf="!disabled && viewAllowed"
class="spot-list--item-floating-actions op-files-tab--file-list-item-floating-actions"
>
+ <a
+ class="spot-link"
+ [title]="text.title.downloadFileLink"
+ [href]="fileLink._links.staticOriginDownload.href"
+ >
+ <span class="spot-icon spot-icon_download-arrow"></span>
+ </a>
<a
class="spot-link"
[title]="text.title.openFileLocation"