-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
load flowpart and bagpart resources by name #15954
load flowpart and bagpart resources by name #15954
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am okay with this change. Alternatively, you can just add asp-name to each of the scripts/styles and that would also prevent the double injections.
src/OrchardCore.Modules/OrchardCore.Widgets/ResourceManifest.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.Widgets/ResourceManifest.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Mike Alhayek <[email protected]>
Co-authored-by: Mike Alhayek <[email protected]>
Co-authored-by: Mike Alhayek <[email protected]>
… flowpart-resources-by-name # Conflicts: # src/OrchardCore.Modules/OrchardCore.Flows/ResourceManifest.cs # src/OrchardCore.Modules/OrchardCore.Widgets/ResourceManifest.cs
@MikeAlhayek no it does'nt solve #15950. but this is required to have bagpart and flowpart on same content item. |
sure , i just think this is more clean. |
|
||
namespace OrchardCore.Flows; | ||
|
||
public class ResourceManagementOptionsConfiguration : IConfigureOptions<ResourceManagementOptions> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well now you need to remove the extra indentation in the file.
|
||
namespace OrchardCore.Widgets; | ||
|
||
public class ResourceManagementOptionsConfiguration : IConfigureOptions<ResourceManagementOptions> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here too. every line have extra 4 spaces that should be removed
To avoid loading resources multiple times with content item that has bagpart and flowpart.