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',
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