]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.ts
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / cephfs / cephfs-list / cephfs-list.component.ts
index 9b4ece957fda175f2ac424813df6d6ee4862ff56..8d19d394c3455de717aeee7ac9b09daa1468ca71 100644 (file)
@@ -1,14 +1,12 @@
 import { Component, OnInit } from '@angular/core';
 
-import { I18n } from '@ngx-translate/i18n-polyfill';
-
-import { CephfsService } from '../../../shared/api/cephfs.service';
-import { ListWithDetails } from '../../../shared/classes/list-with-details.class';
-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';
+import { CephfsService } from '~/app/shared/api/cephfs.service';
+import { ListWithDetails } from '~/app/shared/classes/list-with-details.class';
+import { CellTemplate } from '~/app/shared/enum/cell-template.enum';
+import { CdTableColumn } from '~/app/shared/models/cd-table-column';
+import { CdTableFetchDataContext } from '~/app/shared/models/cd-table-fetch-data-context';
+import { CdTableSelection } from '~/app/shared/models/cd-table-selection';
+import { CdDatePipe } from '~/app/shared/pipes/cd-date.pipe';
 
 @Component({
   selector: 'cd-cephfs-list',
@@ -20,29 +18,25 @@ export class CephfsListComponent extends ListWithDetails implements OnInit {
   filesystems: any = [];
   selection = new CdTableSelection();
 
-  constructor(
-    private cephfsService: CephfsService,
-    private cdDatePipe: CdDatePipe,
-    private i18n: I18n
-  ) {
+  constructor(private cephfsService: CephfsService, private cdDatePipe: CdDatePipe) {
     super();
   }
 
   ngOnInit() {
     this.columns = [
       {
-        name: this.i18n('Name'),
+        name: $localize`Name`,
         prop: 'mdsmap.fs_name',
         flexGrow: 2
       },
       {
-        name: this.i18n('Created'),
+        name: $localize`Created`,
         prop: 'mdsmap.created',
         flexGrow: 2,
         pipe: this.cdDatePipe
       },
       {
-        name: this.i18n('Enabled'),
+        name: $localize`Enabled`,
         prop: 'mdsmap.enabled',
         flexGrow: 1,
         cellTransformation: CellTemplate.checkIcon