diff --git a/frontend/src/app/core/state/storage-files/storage-files.service.ts b/frontend/src/app/core/state/storage-files/storage-files.service.ts index 5a7d9e9bcb42..b621427704e4 100644 --- a/frontend/src/app/core/state/storage-files/storage-files.service.ts +++ b/frontend/src/app/core/state/storage-files/storage-files.service.ts @@ -79,6 +79,10 @@ export class StorageFilesResourceService { return this.httpClient.request(link.method, link.href, { body: link.payload }); } + createFolder(href:string, body:{ name:string, parent_id:ID }):Observable { + return this.httpClient.post(href, body); + } + reset():void { this.store.reset(); } diff --git a/frontend/src/app/shared/components/storages/file-picker-base-modal/file-picker-base-modal.component.ts b/frontend/src/app/shared/components/storages/file-picker-base-modal/file-picker-base-modal.component.ts index da706ce475f1..a807e9da5064 100644 --- a/frontend/src/app/shared/components/storages/file-picker-base-modal/file-picker-base-modal.component.ts +++ b/frontend/src/app/shared/components/storages/file-picker-base-modal/file-picker-base-modal.component.ts @@ -65,7 +65,7 @@ import { v3ErrorIdentifierOutboundRequestForbidden, } from 'core-app/features/hal/resources/error-resource'; -type Alert = 'none'|'noAccess'|'managedFolderNoAccess'|'managedFolderNotFound'; +type Alert = 'none'|'noAccess'|'managedFolderNoAccess'|'managedFolderNotFound'|'cannotCreateFolder'; @Directive() export abstract class FilePickerBaseModalComponent extends OpModalComponent implements OnInit, OnDestroy { diff --git a/frontend/src/app/shared/components/storages/location-picker-modal/location-picker-modal.component.html b/frontend/src/app/shared/components/storages/location-picker-modal/location-picker-modal.component.html index 893be4759a44..9fb30308ad89 100644 --- a/frontend/src/app/shared/components/storages/location-picker-modal/location-picker-modal.component.html +++ b/frontend/src/app/shared/components/storages/location-picker-modal/location-picker-modal.component.html @@ -72,6 +72,17 @@
+
+ +