From: Stephan Müller Date: Tue, 1 Oct 2019 14:25:47 +0000 (+0200) Subject: mgr/dashboard: Localize creation date in CephFS list X-Git-Tag: v15.1.0~1057^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e8e75b9155e9935ae1a8eb1ecee824db754580d8;p=ceph.git mgr/dashboard: Localize creation date in CephFS list Fixes: https://tracker.ceph.com/issues/41575 Signed-off-by: Stephan Müller --- 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'),