From 1db0914e9878a003b383904e3bb22df315e90855 Mon Sep 17 00:00:00 2001 From: Oleg Zhuk Date: Thu, 24 Oct 2024 22:13:47 +0200 Subject: [PATCH] VCST-18168: Add FileUploadScopeName public property. (#119) feat: Add FileUploadScopeName Public property. It allows to specify the scope name for file upload configurations and policies. Default: quote-attachments --- .../ModuleConstants.cs | 12 ++++++++++++ .../Localizations/en.VirtoCommerce.Quote.json | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/src/VirtoCommerce.QuoteModule.Core/ModuleConstants.cs b/src/VirtoCommerce.QuoteModule.Core/ModuleConstants.cs index a0fbb4a..f97cf7e 100644 --- a/src/VirtoCommerce.QuoteModule.Core/ModuleConstants.cs +++ b/src/VirtoCommerce.QuoteModule.Core/ModuleConstants.cs @@ -69,6 +69,16 @@ public static class General DefaultValue = false, IsPublic = true, }; + + public static SettingDescriptor FileUploadScopeName { get; } = new SettingDescriptor + { + Name = "Quotes.FileUploadScopeName", + GroupName = "Quotes|General", + ValueType = SettingValueType.ShortText, + DefaultValue = "quote-attachments", + IsPublic = true, + }; + } public static IEnumerable AllSettings @@ -79,6 +89,7 @@ public static IEnumerable AllSettings yield return General.Status; yield return General.DefaultStatus; yield return General.QuoteRequestNewNumberTemplate; + yield return General.FileUploadScopeName; } } @@ -88,6 +99,7 @@ public static IEnumerable StoreLevelSettings { yield return General.QuoteRequestNewNumberTemplate; yield return General.EnableQuotes; + yield return General.FileUploadScopeName; } } } diff --git a/src/VirtoCommerce.QuoteModule.Web/Localizations/en.VirtoCommerce.Quote.json b/src/VirtoCommerce.QuoteModule.Web/Localizations/en.VirtoCommerce.Quote.json index 6ee9c1d..3842588 100644 --- a/src/VirtoCommerce.QuoteModule.Web/Localizations/en.VirtoCommerce.Quote.json +++ b/src/VirtoCommerce.QuoteModule.Web/Localizations/en.VirtoCommerce.Quote.json @@ -170,6 +170,10 @@ "EnableQuotes": { "title": "Enable quotes", "description": "Enable the switch to activate quotes in the store" + }, + "FileUploadScopeName": { + "title": "File upload scope name", + "description": "Specify the scope name for file upload configurations and policies. Default: quote-attachments" } } },