]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Localize creation date in CephFS list
authorStephan Müller <smueller@suse.com>
Tue, 1 Oct 2019 14:25:47 +0000 (16:25 +0200)
committerStephan Müller <smueller@suse.com>
Mon, 28 Oct 2019 09:43:26 +0000 (10:43 +0100)
Fixes: https://tracker.ceph.com/issues/41575
Signed-off-by: Stephan Müller <smueller@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.ts

index 66567475c76debd5d947cf7e52d9a869109ace0a..04657592e71c479a17c889ac65cd24e83fb5c5ae 100644 (file)
@@ -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'),