Skip to content

Commit

Permalink
VCST-18168: Add FileUploadScopeName public property. (#119)
Browse files Browse the repository at this point in the history
feat: Add FileUploadScopeName Public property. It allows to specify the scope name for file upload configurations and policies. Default: quote-attachments
  • Loading branch information
OlegoO authored Oct 24, 2024
1 parent bea3b6a commit 1db0914
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/VirtoCommerce.QuoteModule.Core/ModuleConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<SettingDescriptor> AllSettings
Expand All @@ -79,6 +89,7 @@ public static IEnumerable<SettingDescriptor> AllSettings
yield return General.Status;
yield return General.DefaultStatus;
yield return General.QuoteRequestNewNumberTemplate;
yield return General.FileUploadScopeName;
}
}

Expand All @@ -88,6 +99,7 @@ public static IEnumerable<SettingDescriptor> StoreLevelSettings
{
yield return General.QuoteRequestNewNumberTemplate;
yield return General.EnableQuotes;
yield return General.FileUploadScopeName;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
},
Expand Down

0 comments on commit 1db0914

Please sign in to comment.