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
[#43534] folders cannot be downloaded using the direct download
Eric Schubert56c0116b7473
diff --git 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.tsindex 5cc54091dbc..3dad8f2b66a 100644--- 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@@ -69,6 +69,8 @@ export class FileLinkListItemComponent implements OnInit, AfterViewInit {fileLinkIcon:IFileIcon;+ downloadAllowed:boolean;+viewAllowed:boolean;text = {@@ -101,6 +103,8 @@ export class FileLinkListItemComponent implements OnInit, AfterViewInit {this.fileLinkIcon = getIconForMimeType(this.originData.mimeType);+ this.downloadAllowed = this.originData.mimeType !== 'application/x-op-directory';+this.text.title.downloadFileLink = this.i18n.t('js.storages.file_links.download',{ fileName: this.fileLink.originData.name },diff --git 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.htmlindex 5e3cf324b0a..c77a53b6676 100644--- 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@@ -34,6 +34,7 @@class="spot-list--item-floating-actions op-files-tab--file-list-item-floating-actions hidden-for-mobile"><a+ *ngIf="downloadAllowed"class="spot-link"[title]="text.title.downloadFileLink"[href]="fileLink._links.staticOriginDownload.href"