Skip to content

Commit

Permalink
chore(edit-content): apply format #28645
Browse files Browse the repository at this point in the history
  • Loading branch information
nicobytes committed Jun 6, 2024
1 parent 54c54eb commit f290a24
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div
class="iframe-wrapper"
[ngClass]="{
'iframe-wrapper--device': es.editorData.mode === editorMode.DEVICE,
'iframe-wrapper--device': es.editorData.mode === editorMode.DEVICE
}"
[ngStyle]="{
width:
Expand Down Expand Up @@ -80,20 +80,22 @@
[variantId]="es.editorData.variantId"
data-testId="palette" />

@if(es.editorData.canEditVariant && (es.editorData.mode === editorMode.EDIT ||
es.editorData.mode === editorMode.EDIT_VARIANT)) {
<dot-edit-ema-dialog
#dialog
(action)="onCustomEvent($event)"
(reloadFromDialog)="reloadFromDialog()"
data-testId="ema-dialog"></dot-edit-ema-dialog>
<p-confirmDialog
[style]="{
width: '400px'
}"
rejectIcon="hidden"
acceptIcon="hidden"
rejectButtonStyleClass="p-button-outlined"
data-testId="confirm-dialog"></p-confirmDialog>
@if (
es.editorData.canEditVariant &&
(es.editorData.mode === editorMode.EDIT || es.editorData.mode === editorMode.EDIT_VARIANT)
) {
<dot-edit-ema-dialog
#dialog
(action)="onCustomEvent($event)"
(reloadFromDialog)="reloadFromDialog()"
data-testId="ema-dialog"></dot-edit-ema-dialog>
<p-confirmDialog
[style]="{
width: '400px'
}"
rejectIcon="hidden"
acceptIcon="hidden"
rejectButtonStyleClass="p-button-outlined"
data-testId="confirm-dialog"></p-confirmDialog>
}
</ng-container>
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
@if ($isInsideEditor()) { @if($contentlets().length){ @for (contentlet of $contentlets(); track
$index) {

<dotcms-contentlet-wrapper [contentlet]="contentlet" [container]="$dotContainerAsString()">
<ng-container
*ngComponentOutlet="
(componentsMap[contentlet.contentType] || componentsMap['CustomNoComponent'] | async) ||
NoComponent;
inputs: { contentlet }
" />
</dotcms-contentlet-wrapper>
} } @else { This container is empty. } } @else { @for (contentlet of $contentlets(); track $index) {
<ng-container
*ngComponentOutlet="componentsMap[contentlet.contentType] | async; inputs: { contentlet }" />
} }
@if ($isInsideEditor()) {
@if ($contentlets().length) {
@for (contentlet of $contentlets(); track $index) {
<dotcms-contentlet-wrapper
[contentlet]="contentlet"
[container]="$dotContainerAsString()">
<ng-container
*ngComponentOutlet="
(componentsMap[contentlet.contentType] || componentsMap['CustomNoComponent']
| async) || NoComponent;
inputs: { contentlet }
" />
</dotcms-contentlet-wrapper>
}
} @else {
This container is empty.
}
} @else {
@for (contentlet of $contentlets(); track $index) {
<ng-container
*ngComponentOutlet="
componentsMap[contentlet.contentType] | async;
inputs: { contentlet }
" />
}
}

0 comments on commit f290a24

Please sign in to comment.