From 7144554361ff9af44da4de0194b7003a6b2366de Mon Sep 17 00:00:00 2001 From: Bruno Pagno Date: Tue, 10 Dec 2024 10:26:14 +0100 Subject: [PATCH] WIP new folder button --- .../storage-files/storage-files.service.ts | 4 +++ .../location-picker-modal.component.html | 15 +++++++++++ .../location-picker-modal.component.ts | 27 +++++++++++++++++++ modules/storages/config/locales/js-en.yml | 1 + 4 files changed, 47 insertions(+) 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/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..71b4acfccd03 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 @@ -44,6 +44,15 @@ [content]="file" > + @@ -72,6 +81,12 @@
+
+ +