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

Remove unused code and console outputs

parent 59e51391
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,6 @@ export class Unit { ...@@ -8,7 +8,6 @@ export class Unit {
pages: Page[] = []; pages: Page[] = [];
constructor(serializedUnit?: Unit) { constructor(serializedUnit?: Unit) {
console.log('newUNIT', serializedUnit);
this.veronaModuleVersion = EXPORTED_MODULE_VERSION; this.veronaModuleVersion = EXPORTED_MODULE_VERSION;
if (serializedUnit && serializedUnit.pages.length > 0) { if (serializedUnit && serializedUnit.pages.length > 0) {
serializedUnit?.pages.forEach((page: Page) => { serializedUnit?.pages.forEach((page: Page) => {
......
...@@ -74,7 +74,6 @@ export class CanvasComponent implements OnInit, OnDestroy { ...@@ -74,7 +74,6 @@ export class CanvasComponent implements OnInit, OnDestroy {
} }
elementDropped(event: CdkDragDrop<DropListData>): void { elementDropped(event: CdkDragDrop<DropListData>): void {
console.log('elementDropped');
const selectedElements = this.selectionService.getSelectedElements(); const selectedElements = this.selectionService.getSelectedElements();
if (event.previousContainer !== event.container) { if (event.previousContainer !== event.container) {
...@@ -114,11 +113,6 @@ export class CanvasComponent implements OnInit, OnDestroy { ...@@ -114,11 +113,6 @@ export class CanvasComponent implements OnInit, OnDestroy {
this.selectionService.selectedPageSectionIndex = this.page.sections.length - 1; this.selectionService.selectedPageSectionIndex = this.page.sections.length - 1;
} }
sectionDrop(event: CdkDragDrop<UnitPageSection[]>): void {
moveItemInArray(this.page.sections, event.previousIndex, event.currentIndex);
this.unitService.setPageSections(this.page, this.page.sections);
}
ngOnDestroy(): void { ngOnDestroy(): void {
this.ngUnsubscribe.next(); this.ngUnsubscribe.next();
this.ngUnsubscribe.complete(); this.ngUnsubscribe.complete();
......
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