ABP Framework version: 3.0.3
User Interface: Angular
I've followed the documentation here to replace ApplicationLayoutComponent, but nothing changes when run. The issue happens even in a newly create ABP project. Replacement of other components like logo, etc. works fine, though.
I've did some digging into the source code of DynamicLayoutComponent and found something of interest.
What I understand from this code is that layout components are only fetched once when the application starts, any subsequent replacements of layout are not picked up.
Hi @haivp3010,
First of all, thank you again for this contribution. You are right about the bug. Before we changed how DynamicLayoutComponent was placed in the project, the layout replacement worked as expected. However, as you have proficiently described, this is not the case with the new version.
You have also put valuable time and effort to create a PR and as I expressed in the PR comment, that is most appreciated. Yet, as also described in the PR, we could not accept the proposed changes. Nevertheless, we have implemented required changes with #4741 and with the next release, they will be available.
Briefly, with the latest changes, you will be able to do two things:
I hope this is a reasonable resolution for this issue.
Have a nice day and thank you again!
Most helpful comment
Hi @haivp3010,
First of all, thank you again for this contribution. You are right about the bug. Before we changed how
DynamicLayoutComponentwas placed in the project, the layout replacement worked as expected. However, as you have proficiently described, this is not the case with the new version.You have also put valuable time and effort to create a PR and as I expressed in the PR comment, that is most appreciated. Yet, as also described in the PR, we could not accept the proposed changes. Nevertheless, we have implemented required changes with #4741 and with the next release, they will be available.
Briefly, with the latest changes, you will be able to do two things:
I hope this is a reasonable resolution for this issue.
Have a nice day and thank you again!