-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(uve): Change reload store to render the correct template/page data (
#30672) ### 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 the `isClientReady` state property and fixing a typo in the `DotCMSPagesComponent`. ### 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`](diffhunk://#diff-42fdc01a4da73b6ecede38045c03fd631badeb73e299fbb4ed6442eb1f3ad963L27-R28): Added `isClientReady` to the initial state of `UVEState`. * [`core-web/libs/portlets/edit-ema/portlet/src/lib/store/features/client/withClient.spec.ts`](diffhunk://#diff-6015ff5bfc4608aa1f9dc0941a319b5758b71856d9f216db24a3ffeefc0c53f7L26-R27): Added `isClientReady` to the initial state of `UVEState` in the client feature. * [`core-web/libs/portlets/edit-ema/portlet/src/lib/store/features/editor/withEditor.spec.ts`](diffhunk://#diff-48915538475425e5656151bb2a73df7a99b4c80c2817c085f96352ef3252d5cbL68-R69): Added `isClientReady` to the initial state of `UVEState` in the editor feature. * [`core-web/libs/portlets/edit-ema/portlet/src/lib/store/features/flags/withFlags.spec.ts`](diffhunk://#diff-973c1ce26e6d1de00e9be74ddf0d7429626e299ab59acb646ce21f6567f8af33L27-R28): Added `isClientReady` to the initial state of `UVEState` in the flags feature. * [`core-web/libs/portlets/edit-ema/portlet/src/lib/store/features/layout/wihtLayout.spec.ts`](diffhunk://#diff-c4b441749ccd043be6d95340a54fbc26c7466acfc6e2d4ae4672f043170f7008L28-R29): Added `isClientReady` to the initial state of `UVEState` in the layout feature. * [`core-web/libs/portlets/edit-ema/portlet/src/lib/store/features/load/withLoad.spec.ts`](diffhunk://#diff-cdf3dddb12d973780196e0402f92c62736024ca9fc5b5b649f104565849d4d0eL72-R73): Added `isClientReady` to the initial state of `UVEState` in the load feature. * [`core-web/libs/portlets/edit-ema/portlet/src/lib/store/features/load/withLoad.ts`](diffhunk://#diff-0cbc04b5047422551dde0970e4ea1d0e1fcce3d9d8f4e0b4612fbc30b1658487L169-R184): Updated the `reload` method to accept `isClientReady` and set its value accordingly. [[1]](diffhunk://#diff-0cbc04b5047422551dde0970e4ea1d0e1fcce3d9d8f4e0b4612fbc30b1658487L169-R184) [[2]](diffhunk://#diff-0cbc04b5047422551dde0970e4ea1d0e1fcce3d9d8f4e0b4612fbc30b1658487L209-R217) * [`core-web/libs/portlets/edit-ema/portlet/src/lib/store/models.ts`](diffhunk://#diff-da4d194131d7dd8d04e0fdefbf262d1d8b9f7841f39f0d702ff6c61b0f078216R21): Added `isClientReady` to the `UVEState` interface. * **Component and Store Behavior Adjustments:** * [`core-web/libs/portlets/edit-ema/portlet/src/lib/edit-ema-layout/edit-ema-layout.component.ts`](diffhunk://#diff-73afe394cdee7b073c22d1f6f049b10c09a7315678a3d22c5ed6f9a1c4518afaL153-R153): Modified the `saveTemplate` method to reload the store with `isClientReady: false`. * [`core-web/libs/portlets/edit-ema/portlet/src/lib/edit-ema-layout/edit-ema-layout.component.spec.ts`](diffhunk://#diff-bb8e289f778f062af74dededdbde614d6458884afa3454e84cfc581dd0ea70efR183-R189): Added a test to check that `isClientReady` is set to false after saving. ### Fixes and Improvements: * **Typo Fix in `DotCMSPagesComponent`:** * [`examples/angular/src/app/pages/pages.component.html`](diffhunk://#diff-4ed5c1356105b0d846976ce8be24ea6935edfef1bde787aee5793e74ed50e726L21-R21): Corrected the typo in the `editorConfig` binding. * [`examples/angular/src/app/pages/pages.component.ts`](diffhunk://#diff-db19dde961c6af3dbddd86db7544e4ea4ff42baae9095cee4e3017c1d4dcb395L70-R70): Fixed the typo in the `editorConfig` property and its usage. [[1]](diffhunk://#diff-db19dde961c6af3dbddd86db7544e4ea4ff42baae9095cee4e3017c1d4dcb395L70-R70) [[2]](diffhunk://#diff-db19dde961c6af3dbddd86db7544e4ea4ff42baae9095cee4e3017c1d4dcb395L84-R84) * **Template Update in `dotcms-layout.component.ts`:** * [`core-web/libs/sdk/angular/src/lib/layout/dotcms-layout/dotcms-layout.component.ts`](diffhunk://#diff-5b008f3e625106e1cb24930f8700a9f82eae16957699b46dcefc0dbe58b5e49dL41-R41): Simplified the template by using the correct variable for page layout rows. Co-authored-by: Kevin Davila <[email protected]>
- Loading branch information
1 parent
7d6a0ad
commit 2239d1d
Showing
13 changed files
with
42 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters