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

[#44856] Fixed ESLint problems

Andreas Pfohlc5bb1c82b2cd
diff --git a/frontend/src/app/shared/components/storages/file-picker-base-modal.component.ts/file-picker-base-modal.component.ts b/frontend/src/app/shared/components/storages/file-picker-base-modal.component.ts/file-picker-base-modal.component.ts
index e3f4e4c7cd3..773dd734d98 100644
--- a/frontend/src/app/shared/components/storages/file-picker-base-modal.component.ts/file-picker-base-modal.component.ts
+++ b/frontend/src/app/shared/components/storages/file-picker-base-modal.component.ts/file-picker-base-modal.component.ts
@@ -132,7 +132,7 @@ export abstract class FilePickerBaseModalComponent extends OpModalComponent impl
};
}
- protected changeLevel(parent:string|null, crumbs:Breadcrumb[]):void {
+ protected changeLevel(parent:string | null, crumbs:Breadcrumb[]):void {
this.cancelCurrentLoading();
this.loading$.next(true);
this.breadcrumbs = new BreadcrumbsContent(crumbs);
diff --git a/frontend/src/app/shared/components/storages/location-picker-modal/location-picker-modal.component.ts b/frontend/src/app/shared/components/storages/location-picker-modal/location-picker-modal.component.ts
index 77278207485..c500326e7ae 100644
--- a/frontend/src/app/shared/components/storages/location-picker-modal/location-picker-modal.component.ts
+++ b/frontend/src/app/shared/components/storages/location-picker-modal/location-picker-modal.component.ts
@@ -112,7 +112,7 @@ export class LocationPickerModalComponent extends FilePickerBaseModalComponent {
);
}
- protected changeLevel(parent:string|null, crumbs:Breadcrumb[]):void {
+ protected changeLevel(parent:string | null, crumbs:Breadcrumb[]):void {
this.location = parent === null ? '/' : parent;
super.changeLevel(parent, crumbs);
}
diff --git a/frontend/src/app/shared/components/storages/storage/storage.component.ts b/frontend/src/app/shared/components/storages/storage/storage.component.ts
index 01086a7fdb9..8e454536eeb 100644
--- a/frontend/src/app/shared/components/storages/storage/storage.component.ts
+++ b/frontend/src/app/shared/components/storages/storage/storage.component.ts
@@ -142,7 +142,7 @@ export class StorageComponent extends UntilDestroyedMixin implements OnInit, OnD
}
private get addFileLinksHref() {
- return (this.resource.$links as unknown&{ addFileLink:IHalResourceLink }).addFileLink.href;
+ return (this.resource.$links as unknown & { addFileLink:IHalResourceLink }).addFileLink.href;
}
constructor(
@@ -185,7 +185,7 @@ export class StorageComponent extends UntilDestroyedMixin implements OnInit, OnD
this.allowEditing$ = this
.currentUserService
- .hasCapabilities$('file_links/manage', (this.resource.project as unknown&{ id:string }).id);
+ .hasCapabilities$('file_links/manage', (this.resource.project as unknown & { id:string }).id);
document.body.addEventListener('dragover', this.onGlobalDragOver.bind(this));
document.body.addEventListener('dragleave', this.afterGlobalDragEnd.bind(this));
@@ -231,7 +231,7 @@ export class StorageComponent extends UntilDestroyedMixin implements OnInit, OnD
this.openSelectLocationDialog(fileList);
}
- private openSelectLocationDialog(files:FileList|null):void {
+ private openSelectLocationDialog(files:FileList | null):void {
const locals = {
storageType: this.storage._links.type.href,
storageTypeName: this.storageType,
@@ -284,7 +284,7 @@ export class StorageComponent extends UntilDestroyedMixin implements OnInit, OnD
}
private uploadResourceLink(fileName:string, location:string):IPrepareUploadLink {
- const project = (this.resource.project as unknown&{ id:string }).id;
+ const project = (this.resource.project as unknown & { id:string }).id;
const link = this.storage._links.prepareUpload.filter((value) => project === value.payload.projectId.toString());
if (link.length === 0) {
throw new Error('Cannot upload to this storage. Missing permissions in project.');
@@ -369,7 +369,7 @@ export class StorageComponent extends UntilDestroyedMixin implements OnInit, OnD
}
private get fileLinkSelfLink():string {
- const fileLinks = this.resource.fileLinks as unknown&{ href:string };
+ const fileLinks = this.resource.fileLinks as unknown & { href:string };
return `${fileLinks.href}?filters=[{"storage":{"operator":"=","values":["${this.storage.id}"]}}]`;
}