mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
fix overlapping private properties
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user