Skip to content
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

Merged
merged 9 commits into from
May 3, 2024

Conversation

giannik
Copy link
Contributor

@giannik giannik commented May 2, 2024

To avoid loading resources multiple times with content item that has bagpart and flowpart.

Copy link
Member

@MikeAlhayek MikeAlhayek left a 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.

@MikeAlhayek
Copy link
Member

MikeAlhayek commented May 2, 2024

@giannik was this to fix #15950? If so, please add Fix #15950 in the PR's description.

giannik and others added 6 commits May 2, 2024 22:34
… flowpart-resources-by-name

# Conflicts:
#	src/OrchardCore.Modules/OrchardCore.Flows/ResourceManifest.cs
#	src/OrchardCore.Modules/OrchardCore.Widgets/ResourceManifest.cs
@giannik
Copy link
Contributor Author

giannik commented May 2, 2024

@giannik was this to fix #15950? If so, please add Fix #15950 in the PR's description.

@MikeAlhayek no it does'nt solve #15950. but this is required to have bagpart and flowpart on same content item.

@giannik
Copy link
Contributor Author

giannik commented May 2, 2024

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.

sure , i just think this is more clean.


namespace OrchardCore.Flows;

public class ResourceManagementOptionsConfiguration : IConfigureOptions<ResourceManagementOptions>
Copy link
Member

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>
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants