fix overlapping private properties

This commit is contained in:
Cilibiu Bogdan
2019-07-19 13:16:55 +03:00
parent 1717624594
commit 416587989e

View File

@@ -50,7 +50,7 @@ import { isLocked } from '../../../utils/node.utils';
}) })
export class CustomNameColumnComponent extends NameColumnComponent export class CustomNameColumnComponent extends NameColumnComponent
implements OnInit, OnDestroy { implements OnInit, OnDestroy {
private onDestroy$ = new Subject<boolean>(); private onDestroy$$ = new Subject<boolean>();
constructor( constructor(
element: ElementRef, element: ElementRef,
@@ -65,7 +65,7 @@ export class CustomNameColumnComponent extends NameColumnComponent
this.updateValue(); this.updateValue();
this.apiService.nodeUpdated this.apiService.nodeUpdated
.pipe(takeUntil(this.onDestroy$)) .pipe(takeUntil(this.onDestroy$$))
.subscribe((node: any) => { .subscribe((node: any) => {
const row = this.context.row; const row = this.context.row;
if (row) { if (row) {
@@ -87,7 +87,7 @@ export class CustomNameColumnComponent extends NameColumnComponent
filter(val => { filter(val => {
return this.node.entry.id === val.payload.entry.id; return this.node.entry.id === val.payload.entry.id;
}), }),
takeUntil(this.onDestroy$) takeUntil(this.onDestroy$$)
) )
.subscribe(() => { .subscribe(() => {
this.cd.detectChanges(); this.cd.detectChanges();
@@ -97,8 +97,8 @@ export class CustomNameColumnComponent extends NameColumnComponent
ngOnDestroy() { ngOnDestroy() {
super.ngOnDestroy(); super.ngOnDestroy();
this.onDestroy$.next(true); this.onDestroy$$.next(true);
this.onDestroy$.complete(); this.onDestroy$$.complete();
} }
isFile(): boolean { isFile(): boolean {