Skip to content
Snippets Groups Projects
Commit 72965847 authored by rhenck's avatar rhenck
Browse files

[editor] Remove unused code

parent 72b2872b
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,6 @@ import { CanvasDragOverlayComponent } from './canvas-drag-overlay.component';
})
export class CanvasSectionComponent implements OnInit {
@Input() section!: UnitPageSection;
@Input() childrenDraggable: boolean = false;
@Output() elementSelected = new EventEmitter<{ componentElement: CanvasDragOverlayComponent, multiSelect: boolean }>();
@ViewChild('elementContainer', { read: ViewContainerRef, static: true }) private elementContainer!: ViewContainerRef;
private canvasComponents: CanvasDragOverlayComponent[] = [];
......
......@@ -11,14 +11,14 @@
<div #section_component app-canvas-section class="section"
*ngFor="let section of page.sections; let i = index"
[section]="section"
cdkDrag [childrenDraggable]="!sectionEditMode"
cdkDrag
[ngStyle]="{border: '1px solid', 'width.px': page.width, 'height.px': section.height}">
</div>
</div>
<div *ngIf="!sectionEditMode" cdkDropListGroup class="section-list">
<div #section_component app-canvas-section class="section"
*ngFor="let section of page.sections; let i = index"
[section]="section" [childrenDraggable]="!sectionEditMode"
[section]="section"
(elementSelected)="elementSelected($event)" (click)="selectSection(i)"
cdkDropList cdkDropListSortingDisabled
(cdkDropListDropped)="elementDropped($event)" [cdkDropListData]="section"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment