This pull request includes several changes to enhance the EditEmaLayoutComponent and related store features, mainly focusing on the addition of the isClientReady state property and fixing a typo in the DotCMSPagesComponent.
Enhancements to EditEmaLayoutComponent and Store Features:
Showcase
https://github.com/user-attachments/assets/934c4861-238d-4e7a-b831-7fd9b1b70c77
This pull request includes several changes to enhance the
EditEmaLayoutComponent
and related store features, mainly focusing on the addition of theisClientReady
state property and fixing a typo in theDotCMSPagesComponent
.Enhancements to
EditEmaLayoutComponent
and Store Features:Addition of
isClientReady
State Property:core-web/libs/portlets/edit-ema/portlet/src/lib/store/dot-uve.store.ts
: AddedisClientReady
to the initial state ofUVEState
.core-web/libs/portlets/edit-ema/portlet/src/lib/store/features/client/withClient.spec.ts
: AddedisClientReady
to the initial state ofUVEState
in the client feature.core-web/libs/portlets/edit-ema/portlet/src/lib/store/features/editor/withEditor.spec.ts
: AddedisClientReady
to the initial state ofUVEState
in the editor feature.core-web/libs/portlets/edit-ema/portlet/src/lib/store/features/flags/withFlags.spec.ts
: AddedisClientReady
to the initial state ofUVEState
in the flags feature.core-web/libs/portlets/edit-ema/portlet/src/lib/store/features/layout/wihtLayout.spec.ts
: AddedisClientReady
to the initial state ofUVEState
in the layout feature.core-web/libs/portlets/edit-ema/portlet/src/lib/store/features/load/withLoad.spec.ts
: AddedisClientReady
to the initial state ofUVEState
in the load feature.core-web/libs/portlets/edit-ema/portlet/src/lib/store/features/load/withLoad.ts
: Updated thereload
method to acceptisClientReady
and set its value accordingly. [1] [2]core-web/libs/portlets/edit-ema/portlet/src/lib/store/models.ts
: AddedisClientReady
to theUVEState
interface.Component and Store Behavior Adjustments:
core-web/libs/portlets/edit-ema/portlet/src/lib/edit-ema-layout/edit-ema-layout.component.ts
: Modified thesaveTemplate
method to reload the store withisClientReady: false
.core-web/libs/portlets/edit-ema/portlet/src/lib/edit-ema-layout/edit-ema-layout.component.spec.ts
: Added a test to check thatisClientReady
is set to false after saving.Fixes and Improvements:
Typo Fix in
DotCMSPagesComponent
:examples/angular/src/app/pages/pages.component.html
: Corrected the typo in theeditorConfig
binding.examples/angular/src/app/pages/pages.component.ts
: Fixed the typo in theeditorConfig
property and its usage. [1] [2]Template Update in
dotcms-layout.component.ts
:core-web/libs/sdk/angular/src/lib/layout/dotcms-layout/dotcms-layout.component.ts
: Simplified the template by using the correct variable for page layout rows.This PR fixes: #30441