From 4704c93d56b0d4cd02115dc16d4e1426d54ba70f Mon Sep 17 00:00:00 2001 From: Bruno Pagno Date: Tue, 10 Dec 2024 10:26:14 +0100 Subject: [PATCH] new folder button --- .../storage-files/storage-files.service.ts | 4 ++++ .../location-picker-modal.component.html | 10 ++++++++++ .../location-picker-modal.component.ts | 17 +++++++++++++++++ .../storages/storage/storage.component.ts | 1 + modules/storages/config/locales/js-en.yml | 1 + 5 files changed, 33 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..f6e263e38afd 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,16 @@
+
+ +