From e8e75b9155e9935ae1a8eb1ecee824db754580d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stephan=20M=C3=BCller?= Date: Tue, 1 Oct 2019 16:25:47 +0200 Subject: [PATCH] mgr/dashboard: Localize creation date in CephFS list MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: https://tracker.ceph.com/issues/41575 Signed-off-by: Stephan Müller --- .../ceph/cephfs/cephfs-list/cephfs-list.component.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.ts index 66567475c76..04657592e71 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.ts @@ -7,6 +7,7 @@ import { CellTemplate } from '../../../shared/enum/cell-template.enum'; import { CdTableColumn } from '../../../shared/models/cd-table-column'; import { CdTableFetchDataContext } from '../../../shared/models/cd-table-fetch-data-context'; import { CdTableSelection } from '../../../shared/models/cd-table-selection'; +import { CdDatePipe } from '../../../shared/pipes/cd-date.pipe'; @Component({ selector: 'cd-cephfs-list', @@ -18,7 +19,11 @@ export class CephfsListComponent implements OnInit { filesystems: any = []; selection = new CdTableSelection(); - constructor(private cephfsService: CephfsService, private i18n: I18n) {} + constructor( + private cephfsService: CephfsService, + private cdDatePipe: CdDatePipe, + private i18n: I18n + ) {} ngOnInit() { this.columns = [ @@ -30,7 +35,8 @@ export class CephfsListComponent implements OnInit { { name: this.i18n('Created'), prop: 'mdsmap.created', - flexGrow: 2 + flexGrow: 2, + pipe: this.cdDatePipe }, { name: this.i18n('Enabled'), -- 2.39.5