mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-1547] tooltip fixes and enhancements (#2333)
* tooltip enhancements * fix unit tests
This commit is contained in:
committed by
Eugenio Romano
parent
eafe884a9d
commit
1fd23cfd40
@@ -34,9 +34,6 @@ import { DataTableCellComponent } from './datatable-cell.component';
|
||||
})
|
||||
export class LocationCellComponent extends DataTableCellComponent implements OnInit {
|
||||
|
||||
@Input()
|
||||
tooltip: string = '';
|
||||
|
||||
@Input()
|
||||
link: any[];
|
||||
|
||||
@@ -50,7 +47,10 @@ export class LocationCellComponent extends DataTableCellComponent implements OnI
|
||||
if (path) {
|
||||
this.value = path;
|
||||
this.displayText = path.name.split('/').pop();
|
||||
this.tooltip = path.name;
|
||||
|
||||
if (!this.tooltip) {
|
||||
this.tooltip = path.name;
|
||||
}
|
||||
|
||||
const parent = path.elements[path.elements.length - 1];
|
||||
this.link = [ this.column.format, parent.id ];
|
||||
|
Reference in New Issue
Block a user