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

[#48044] fixed PR issues

Eric Schubert6336e982d450
diff --git a/docs/api/apiv3/paths/project_storages.yml b/docs/api/apiv3/paths/project_storages.yml
index 22bb9fb6802..58af681290f 100644
--- a/docs/api/apiv3/paths/project_storages.yml
+++ b/docs/api/apiv3/paths/project_storages.yml
@@ -30,7 +30,7 @@ get:
schema:
$ref: '../components/schemas/project_storage_collection_model.yml'
'400':
- description: Returned if the any given filter is invalid.
+ description: Returned if any given filter is invalid.
content:
application/hal+json:
schema:
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/file-picker-base-modal.component.ts
similarity index 88%
rename from frontend/src/app/shared/components/storages/file-picker-base-modal.component.ts/file-picker-base-modal.component.ts
rename to frontend/src/app/shared/components/storages/file-picker-base-modal/file-picker-base-modal.component.ts
index c271a3cc102..7a15054bd89 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/file-picker-base-modal.component.ts
@@ -107,16 +107,18 @@ export abstract class FilePickerBaseModalComponent extends OpModalComponent impl
.pipe(
this.untilDestroyed(),
switchMap((location:string) => this.storageFilesResourceService.files(makeFilesCollectionLink(this.storage._links.self, location))),
- catchError((error) => {
+ )
+ .subscribe({
+ next: (storageFiles) => {
+ this.currentDirectory = storageFiles.parent;
+ this.breadcrumbs = this.makeBreadcrumbs(storageFiles.ancestors, storageFiles.parent);
+ this.storageFiles$.next(storageFiles.files);
+ this.loading$.next('success');
+ },
+ error: (error) => {
this.loading$.next('error');
throw error;
- }),
- )
- .subscribe((storageFiles) => {
- this.currentDirectory = storageFiles.parent;
- this.breadcrumbs = this.makeBreadcrumbs(storageFiles.ancestors, storageFiles.parent);
- this.storageFiles$.next(storageFiles.files);
- this.loading$.next('success');
+ },
});
}
@@ -146,15 +148,17 @@ export abstract class FilePickerBaseModalComponent extends OpModalComponent impl
this.loadingSubscription = this.storageFilesResourceService
.files(makeFilesCollectionLink(this.storage._links.self, ancestor.location))
- .pipe(catchError((error) => {
- this.loading$.next('error');
- throw error;
- }))
- .subscribe((storageFiles) => {
- this.currentDirectory = storageFiles.parent;
- this.breadcrumbs = this.makeBreadcrumbs(storageFiles.ancestors, storageFiles.parent);
- this.storageFiles$.next(storageFiles.files);
- this.loading$.next('success');
+ .subscribe({
+ next: (storageFiles) => {
+ this.currentDirectory = storageFiles.parent;
+ this.breadcrumbs = this.makeBreadcrumbs(storageFiles.ancestors, storageFiles.parent);
+ this.storageFiles$.next(storageFiles.files);
+ this.loading$.next('success');
+ },
+ error: (error) => {
+ this.loading$.next('error');
+ throw error;
+ },
});
}
diff --git a/frontend/src/app/shared/components/storages/file-picker-modal/file-picker-modal.component.ts b/frontend/src/app/shared/components/storages/file-picker-modal/file-picker-modal.component.ts
index 6693cf83b30..a0dd86e18c1 100644
--- a/frontend/src/app/shared/components/storages/file-picker-modal/file-picker-modal.component.ts
+++ b/frontend/src/app/shared/components/storages/file-picker-modal/file-picker-modal.component.ts
@@ -48,7 +48,7 @@ import {
} from 'core-app/shared/components/storages/storage-file-list-item/storage-file-list-item';
import {
FilePickerBaseModalComponent,
-} from 'core-app/shared/components/storages/file-picker-base-modal.component.ts/file-picker-base-modal.component';
+} from 'core-app/shared/components/storages/file-picker-base-modal/file-picker-base-modal.component';
import { HttpErrorResponse } from '@angular/common/http';
@Component({
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 d70d5de2509..8ce8be4e864 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
@@ -47,7 +47,7 @@ import {
} from 'core-app/shared/components/storages/storage-file-list-item/storage-file-list-item';
import {
FilePickerBaseModalComponent,
-} from 'core-app/shared/components/storages/file-picker-base-modal.component.ts/file-picker-base-modal.component';
+} from 'core-app/shared/components/storages/file-picker-base-modal/file-picker-base-modal.component';
@Component({
templateUrl: 'location-picker-modal.component.html',