From bbdecde7d175f70008bb8f58a789fc0429e35d8f Mon Sep 17 00:00:00 2001 From: Rafael Velazco Date: Thu, 2 Jan 2025 17:01:27 -0400 Subject: [PATCH] chore: code cleanup --- .../dot-uve-device-selector.component.ts | 4 +- .../edit-ema-editor.component.html | 112 +++++++++--------- 2 files changed, 61 insertions(+), 55 deletions(-) diff --git a/core-web/libs/portlets/edit-ema/portlet/src/lib/edit-ema-editor/components/dot-uve-toolbar/components/dot-uve-device-selector/dot-uve-device-selector.component.ts b/core-web/libs/portlets/edit-ema/portlet/src/lib/edit-ema-editor/components/dot-uve-toolbar/components/dot-uve-device-selector/dot-uve-device-selector.component.ts index 799ed3fd019..ab31ad9339a 100644 --- a/core-web/libs/portlets/edit-ema/portlet/src/lib/edit-ema-editor/components/dot-uve-toolbar/components/dot-uve-device-selector/dot-uve-device-selector.component.ts +++ b/core-web/libs/portlets/edit-ema/portlet/src/lib/edit-ema-editor/components/dot-uve-toolbar/components/dot-uve-device-selector/dot-uve-device-selector.component.ts @@ -135,7 +135,9 @@ export class DotUveDeviceSelectorComponent implements OnInit { onDeviceSelect(device: DotDevice): void { if (this.#store.socialMedia()) { this.#store.setSEO(null); - this.#store.reloadCurrentPage(); + + // Bug Importante + // this.#store.reloadCurrentPage(); } const currentDevice = this.$currentDevice(); diff --git a/core-web/libs/portlets/edit-ema/portlet/src/lib/edit-ema-editor/edit-ema-editor.component.html b/core-web/libs/portlets/edit-ema/portlet/src/lib/edit-ema-editor/edit-ema-editor.component.html index 9597826a4a6..2dabee87fcf 100644 --- a/core-web/libs/portlets/edit-ema/portlet/src/lib/edit-ema-editor/edit-ema-editor.component.html +++ b/core-web/libs/portlets/edit-ema/portlet/src/lib/edit-ema-editor/edit-ema-editor.component.html @@ -1,3 +1,6 @@ +@let ogTagsResults = ogTagsResults$; +@let showSEOTool = $editorProps().seoResults && ogTagsResults; + @if ($previewMode()) { } @else { @@ -6,70 +9,71 @@ (editUrlContentMap)="editContentMap($event)" /> } -@let ogTagsResults = ogTagsResults$; - -@if ($editorProps().seoResults && ogTagsResults) { +@if (showSEOTool) { } -@if ($editorProps().showEditorContent) { + +
-
+ - @if ($editorProps().progressBar) { - - } - @if ($editorProps().contentletTools; as contentletTools) { - - } - @if ($editorProps().dropzone; as dropzone) { - - } -
+ #iframe + data-testId="iframe" + width="100%" + height="100%"> + @if ($editorProps().progressBar) { + + } + @if ($editorProps().contentletTools; as contentletTools) { + + } + @if ($editorProps().dropzone; as dropzone) { + + }
-} +
+ @if ($editorProps().palette; as palette) {