diff --git a/lib/content-services/content-node-selector/content-node-selector-panel.component.html b/lib/content-services/content-node-selector/content-node-selector-panel.component.html index e0e6571cb7..e3a3233421 100644 --- a/lib/content-services/content-node-selector/content-node-selector-panel.component.html +++ b/lib/content-services/content-node-selector/content-node-selector-panel.component.html @@ -79,8 +79,8 @@ - - + + diff --git a/lib/content-services/content-node-selector/name-location-cell/name-location-cell.component.ts b/lib/content-services/content-node-selector/name-location-cell/name-location-cell.component.ts index 61800cbc9d..5fd47726cc 100644 --- a/lib/content-services/content-node-selector/name-location-cell/name-location-cell.component.ts +++ b/lib/content-services/content-node-selector/name-location-cell/name-location-cell.component.ts @@ -15,29 +15,36 @@ * limitations under the License. */ -import { ChangeDetectionStrategy, Component, OnInit, ViewEncapsulation } from '@angular/core'; -import { DataTableCellComponent } from '@alfresco/adf-core'; +import { Input, ChangeDetectionStrategy, Component, OnInit, ViewEncapsulation } from '@angular/core'; +import { DataRow } from '@alfresco/adf-core'; @Component({ selector: 'adf-name-location-cell', template: ` -
{{ name }}
-
{{ path?.name }}
+
{{ name }}
+
{{ path }}
`, styleUrls: ['./name-location-cell.component.scss'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'adf-name-location-cell' } }) -export class NameLocationCellComponent extends DataTableCellComponent implements OnInit { +export class NameLocationCellComponent implements OnInit { - path: string = ''; name: string = ''; + path: string = ''; + + @Input() + row: DataRow; ngOnInit() { if (this.row) { - this.path = this.row.getValue('path'); this.name = this.row.getValue('name'); + + const fullPath = this.row.getValue('path'); + if (fullPath) { + this.path = fullPath.name || ''; + } } } } diff --git a/lib/core/form/components/widgets/date/date.widget.html b/lib/core/form/components/widgets/date/date.widget.html index a36cc48232..cfca144b8d 100644 --- a/lib/core/form/components/widgets/date/date.widget.html +++ b/lib/core/form/components/widgets/date/date.widget.html @@ -16,6 +16,6 @@ - + diff --git a/lib/core/form/components/widgets/people/people.widget.html b/lib/core/form/components/widgets/people/people.widget.html index 386b051e76..9bf4e0c740 100644 --- a/lib/core/form/components/widgets/people/people.widget.html +++ b/lib/core/form/components/widgets/people/people.widget.html @@ -1,5 +1,4 @@