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

[#52088] enable file link removal for all faulty file links

Eric Schubertdb367cf6d0d3
diff --git a/frontend/src/app/shared/components/storages/file-link-list-item/file-link-list-item.component.ts b/frontend/src/app/shared/components/storages/file-link-list-item/file-link-list-item.component.ts
index eaedbf7d1ac..41d12a412d2 100644
--- a/frontend/src/app/shared/components/storages/file-link-list-item/file-link-list-item.component.ts
+++ b/frontend/src/app/shared/components/storages/file-link-list-item/file-link-list-item.component.ts
@@ -201,14 +201,10 @@ export class FileLinkListItemComponent implements OnInit, AfterViewInit {
return [];
}
- if (this.statusIs(fileLinkStatusNotFound) && this.allowEditing) {
+ if (this.hasFaultyStatus && this.allowEditing) {
return [this.removeAction()];
}
- if (this.hasFaultyStatus) {
- return [];
- }
-
// healthy file link
const actions:FloatingAction[] = [];
if (!isDirectory(this.originData)) {