diff --git a/src/app/components/modal/modals/blocks/blocks.component.ts b/src/app/components/modal/modals/blocks/blocks.component.ts index 6199a5a..b6a4712 100644 --- a/src/app/components/modal/modals/blocks/blocks.component.ts +++ b/src/app/components/modal/modals/blocks/blocks.component.ts @@ -26,10 +26,10 @@ export class BlocksComponent implements OnInit, OnDestroy { activeChild: number; scrollMayEnd = true; - @ViewChild('container') container: ElementRef; + onlyDone: boolean; + @ViewChild('container') container: ElementRef; private subscription; - private onlyDone: boolean; @HostListener('click') cancel() { this.cancelService.cancelAll(); @@ -55,7 +55,7 @@ export class BlocksComponent implements OnInit, OnDestroy { } constructor( - private modalService: ModalService, + public modalService: ModalService, private cancelService: CancelService, private changeDetector: ChangeDetectorRef, private component: ElementRef diff --git a/src/app/components/shared/select-add/select-add.component.html b/src/app/components/shared/select-add/select-add.component.html index 7983461..3ff9840 100644 --- a/src/app/components/shared/select-add/select-add.component.html +++ b/src/app/components/shared/select-add/select-add.component.html @@ -7,12 +7,7 @@ - arrow + arrow
diff --git a/src/app/components/shared/select-add/select-add.component.ts b/src/app/components/shared/select-add/select-add.component.ts index c8d30e0..6c336e5 100644 --- a/src/app/components/shared/select-add/select-add.component.ts +++ b/src/app/components/shared/select-add/select-add.component.ts @@ -89,7 +89,13 @@ export class SelectAddComponent { this.editMode = false; } this.backgroundHeight = this.getBackgroundHeight(); - console.log('editable', this.editable); + } + + onArrowClick(event) { + if (this.editMode) { + this.toggle(); + event.stopPropagation(); + } } private getBackgroundHeight(): string {