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] fixed small issues found in PR

Eric Schubertc0c7862245f9
diff --git a/frontend/src/app/core/state/attachments/attachment-upload-options.model.ts b/frontend/src/app/core/state/attachments/attachment-upload-options.model.ts
deleted file mode 100644
index 87ee926ead8..00000000000
--- a/frontend/src/app/core/state/attachments/attachment-upload-options.model.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-// -- copyright
-// OpenProject is an open source project management software.
-// Copyright (C) 2012-2022 the OpenProject GmbH
-//
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU General Public License version 3.
-//
-// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
-// Copyright (C) 2006-2013 Jean-Philippe Lang
-// Copyright (C) 2010-2013 the ChiliProject Team
-//
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU General Public License
-// as published by the Free Software Foundation; either version 2
-// of the License, or (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-//
-// See COPYRIGHT and LICENSE files for more details.
-//++
-
-export interface IAttachmentUploadOptions {
- isNewResource:boolean;
- directUploadUrl:string|null;
-}
diff --git a/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.html b/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.html
index 20f24ad4851..923a38ae32c 100644
--- a/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.html
+++ b/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.html
@@ -139,4 +139,4 @@
*ngIf="workPackage.canAddAttachments">
</ndc-dynamic>
</div>
-</div>
\ No newline at end of file
+</div>
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 b9268af230e..3865e3fa015 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
@@ -34,8 +34,6 @@ import { map, switchMap } from 'rxjs/operators';
import { I18nService } from 'core-app/core/i18n/i18n.service';
import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
import { HalResource } from 'core-app/features/hal/resources/hal-resource';
-import { States } from 'core-app/core/states/states.service';
-import { HalResourceNotificationService } from 'core-app/features/hal/services/hal-resource-notification.service';
import { IAttachment } from 'core-app/core/state/attachments/attachment.model';
import { PrincipalsResourceService } from 'core-app/core/state/principals/principals.service';
import { IUser } from 'core-app/core/state/principals/user.model';
@@ -71,11 +69,9 @@ export class AttachmentListItemComponent implements OnInit {
public $author:Observable<IUser>;
- constructor(protected halNotification:HalResourceNotificationService,
- private readonly principalsResourceService:PrincipalsResourceService,
- readonly I18n:I18nService,
- readonly states:States,
- readonly pathHelper:PathHelperService) {
+ constructor(private readonly principalsResourceService:PrincipalsResourceService,
+ private readonly I18n:I18nService,
+ private readonly pathHelper:PathHelperService) {
}
ngOnInit():void {