From 290974fd012fa4aba7f2581aacb7954c9d5d88ab Mon Sep 17 00:00:00 2001 From: Bruno Pagno Date: Sun, 15 Dec 2024 16:01:08 +0100 Subject: [PATCH] disable new folder when the user does not have write permission --- .../file-picker-base-modal.component.ts | 2 +- .../location-picker-modal.component.html | 1 + .../location-picker-modal.component.ts | 16 ++++++++++++++-- modules/storages/config/locales/js-en.yml | 1 + 4 files changed, 17 insertions(+), 3 deletions(-) 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 f6e263e38afd..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 @@ -76,6 +76,7 @@