Fix build errors
This commit is contained in:
parent
32704c5561
commit
97e94ec154
3 changed files with 11 additions and 10 deletions
|
|
@ -26,10 +26,10 @@ export class BlocksComponent implements OnInit, OnDestroy {
|
||||||
activeChild: number;
|
activeChild: number;
|
||||||
scrollMayEnd = true;
|
scrollMayEnd = true;
|
||||||
|
|
||||||
@ViewChild('container') container: ElementRef;
|
onlyDone: boolean;
|
||||||
|
|
||||||
|
@ViewChild('container') container: ElementRef;
|
||||||
private subscription;
|
private subscription;
|
||||||
private onlyDone: boolean;
|
|
||||||
|
|
||||||
@HostListener('click') cancel() {
|
@HostListener('click') cancel() {
|
||||||
this.cancelService.cancelAll();
|
this.cancelService.cancelAll();
|
||||||
|
|
@ -55,7 +55,7 @@ export class BlocksComponent implements OnInit, OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private modalService: ModalService,
|
public modalService: ModalService,
|
||||||
private cancelService: CancelService,
|
private cancelService: CancelService,
|
||||||
private changeDetector: ChangeDetectorRef,
|
private changeDetector: ChangeDetectorRef,
|
||||||
private component: ElementRef
|
private component: ElementRef
|
||||||
|
|
|
||||||
|
|
@ -7,12 +7,7 @@
|
||||||
<ng-template #editableSelected>
|
<ng-template #editableSelected>
|
||||||
<input type="text" [value]="selected" (change)="changeOption(selected, $event)" />
|
<input type="text" [value]="selected" (change)="changeOption(selected, $event)" />
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<img
|
<img src="assets/arrow.svg" (click)="onArrowClick($event)" [className]="isOpen ? 'upside-down' : ''" alt="arrow" />
|
||||||
src="assets/arrow.svg"
|
|
||||||
(click)="editMode && (toggle() || $event.stopPropagation())"
|
|
||||||
[className]="isOpen ? 'upside-down' : ''"
|
|
||||||
alt="arrow"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="bottom-container">
|
<div class="bottom-container">
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,13 @@ export class SelectAddComponent {
|
||||||
this.editMode = false;
|
this.editMode = false;
|
||||||
}
|
}
|
||||||
this.backgroundHeight = this.getBackgroundHeight();
|
this.backgroundHeight = this.getBackgroundHeight();
|
||||||
console.log('editable', this.editable);
|
}
|
||||||
|
|
||||||
|
onArrowClick(event) {
|
||||||
|
if (this.editMode) {
|
||||||
|
this.toggle();
|
||||||
|
event.stopPropagation();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private getBackgroundHeight(): string {
|
private getBackgroundHeight(): string {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue