]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: frontend: use checkIcon for enabled column in user list
authorRicardo Dias <rdias@suse.com>
Thu, 1 Aug 2019 07:52:50 +0000 (08:52 +0100)
committerRicardo Dias <rdias@suse.com>
Thu, 1 Aug 2019 08:34:53 +0000 (09:34 +0100)
Signed-off-by: Ricardo Dias <rdias@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-list/user-list.component.ts

index cdc6181e8bf8a93e65994e509bab1e9992c7c569..b30f3644f34aaa8e2d88894b569640ab23181ef7 100644 (file)
@@ -6,6 +6,7 @@ import { BsModalRef, BsModalService } from 'ngx-bootstrap/modal';
 import { UserService } from '../../../shared/api/user.service';
 import { CriticalConfirmationModalComponent } from '../../../shared/components/critical-confirmation-modal/critical-confirmation-modal.component';
 import { ActionLabelsI18n } from '../../../shared/constants/app.constants';
+import { CellTemplate } from '../../../shared/enum/cell-template.enum';
 import { Icons } from '../../../shared/enum/icons.enum';
 import { NotificationType } from '../../../shared/enum/notification-type.enum';
 import { CdTableAction } from '../../../shared/models/cd-table-action';
@@ -101,7 +102,7 @@ export class UserListComponent implements OnInit {
         name: this.i18n('Enabled'),
         prop: 'enabled',
         flexGrow: 1,
-        cellTemplate: this.userEnabledTpl
+        cellTransformation: CellTemplate.checkIcon
       }
     ];
   }