mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[AAE-9200] - Be able to customise task/process list and header date f… (#7711)
* [AAE-9200] - Be able to customise task/process list and header date formats * Update json schema * Revert schema changes * Update task and process name translation values * move task/process header date formats inside header config * Add documentation * Update documentation * Use a fixed timezone for unit tests of core and cloud * Fix e2e due to column rename * More e2e fixes due to column rename, remove test covered by unit test
This commit is contained in:
@@ -41,8 +41,7 @@ import { takeUntil } from 'rxjs/operators';
|
||||
<ng-template #standard_date>
|
||||
<span
|
||||
class="adf-datatable-cell-value"
|
||||
title="{{ tooltip | adfLocalizedDate: format }}"
|
||||
class="adf-datatable-cell-value"
|
||||
title="{{ tooltip | adfLocalizedDate: tooltipDateFormat }}"
|
||||
[attr.aria-label]="value$ | async | adfLocalizedDate: format">
|
||||
{{ value$ | async | adfLocalizedDate: format }}
|
||||
</span>
|
||||
@@ -57,6 +56,7 @@ export class DateCellComponent extends DataTableCellComponent {
|
||||
|
||||
currentLocale: string;
|
||||
dateFormat: string;
|
||||
tooltipDateFormat: string;
|
||||
|
||||
get format(): string {
|
||||
if (this.column) {
|
||||
@@ -73,6 +73,7 @@ export class DateCellComponent extends DataTableCellComponent {
|
||||
super(alfrescoApiService);
|
||||
|
||||
this.dateFormat = appConfig.get('dateValues.defaultDateFormat', DateCellComponent.DATE_FORMAT);
|
||||
this.tooltipDateFormat = appConfig.get('dateValues.defaultTooltipDateFormat', DateCellComponent.DATE_FORMAT);
|
||||
if (userPreferenceService) {
|
||||
userPreferenceService
|
||||
.select(UserPreferenceValues.Locale)
|
||||
|
Reference in New Issue
Block a user