mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
GH Auto: Upstream dependencies ADF:8.4.0-20960843160 JS-API:9.4.0-20960843160 using Tag:8.4.0-20960843160 (#4986)
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@
|
||||
| translate : { name: displayText$ | async }
|
||||
"
|
||||
class="adf-datatable-cell-value"
|
||||
title="{{ node | adfNodeNameTooltip }}"
|
||||
[title]="tooltip()"
|
||||
(click)="onLinkClick($event)"
|
||||
(keyup.enter)="onLinkClick($event)"
|
||||
>
|
||||
|
||||
+8
-2
@@ -65,13 +65,15 @@ describe('CustomNameColumnComponent', () => {
|
||||
node: {
|
||||
entry: {
|
||||
isFile: true,
|
||||
id: 'nodeId'
|
||||
id: 'nodeId',
|
||||
name: 'test-file.txt'
|
||||
}
|
||||
},
|
||||
getValue: (key: string) => key
|
||||
}
|
||||
};
|
||||
|
||||
component.ngOnInit();
|
||||
fixture.detectChanges();
|
||||
|
||||
expect(fixture.debugElement.nativeElement.querySelector('aca-locked-by')).toBe(null);
|
||||
@@ -83,13 +85,15 @@ describe('CustomNameColumnComponent', () => {
|
||||
node: {
|
||||
entry: {
|
||||
isFile: false,
|
||||
id: 'nodeId'
|
||||
id: 'nodeId',
|
||||
name: 'test-folder'
|
||||
}
|
||||
},
|
||||
getValue: (key: string) => key
|
||||
}
|
||||
};
|
||||
|
||||
component.ngOnInit();
|
||||
fixture.detectChanges();
|
||||
|
||||
expect(fixture.debugElement.nativeElement.querySelector('aca-locked-by')).toBe(null);
|
||||
@@ -102,6 +106,7 @@ describe('CustomNameColumnComponent', () => {
|
||||
entry: {
|
||||
isFile: true,
|
||||
id: 'nodeId',
|
||||
name: 'locked-file.txt',
|
||||
properties: { 'cm:lockType': 'WRITE_LOCK' }
|
||||
}
|
||||
},
|
||||
@@ -109,6 +114,7 @@ describe('CustomNameColumnComponent', () => {
|
||||
}
|
||||
};
|
||||
|
||||
component.ngOnInit();
|
||||
fixture.detectChanges();
|
||||
|
||||
expect(fixture.debugElement.nativeElement.querySelector('aca-locked-by')).not.toBe(null);
|
||||
|
||||
+2
-2
@@ -22,7 +22,7 @@
|
||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { NameColumnComponent, NodeNameTooltipPipe, NodesApiService } from '@alfresco/adf-content-services';
|
||||
import { NameColumnComponent, NodesApiService } from '@alfresco/adf-content-services';
|
||||
import { ChangeDetectorRef, Component, DestroyRef, ElementRef, inject, OnInit, ViewEncapsulation } from '@angular/core';
|
||||
import { Actions, ofType } from '@ngrx/effects';
|
||||
import { filter } from 'rxjs/operators';
|
||||
@@ -34,7 +34,7 @@ import { DatatableCellBadgesComponent } from '../datatable-cell-badges/datatable
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, TranslatePipe, LockedByComponent, NodeNameTooltipPipe, DatatableCellBadgesComponent],
|
||||
imports: [CommonModule, TranslatePipe, LockedByComponent, DatatableCellBadgesComponent],
|
||||
selector: 'aca-custom-name-column',
|
||||
templateUrl: './name-column.component.html',
|
||||
styleUrls: ['./name-column.component.scss'],
|
||||
|
||||
Reference in New Issue
Block a user