X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fpybind%2Fmgr%2Fdashboard%2Ffrontend%2Fsrc%2Fapp%2Fcore%2Fauth%2Frole-details%2Frole-details.component.ts;h=6ee91494104229df26cb345fa5c9425d2c35d561;hb=e306af509c4d4816a1f73b17a825ea5186fa0030;hp=1ed0568f773bff6c020730de7ea1c93a81b51dc7;hpb=5164c6f75c1d9ca9e83f6172e1cd48f9ab584acf;p=ceph.git diff --git a/ceph/src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-details/role-details.component.ts b/ceph/src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-details/role-details.component.ts index 1ed0568f7..6ee914941 100644 --- a/ceph/src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-details/role-details.component.ts +++ b/ceph/src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-details/role-details.component.ts @@ -5,7 +5,6 @@ import * as _ from 'lodash'; import { CellTemplate } from '../../../shared/enum/cell-template.enum'; import { CdTableColumn } from '../../../shared/models/cd-table-column'; -import { CdTableSelection } from '../../../shared/models/cd-table-selection'; @Component({ selector: 'cd-role-details', @@ -14,7 +13,7 @@ import { CdTableSelection } from '../../../shared/models/cd-table-selection'; }) export class RoleDetailsComponent implements OnChanges, OnInit { @Input() - selection: CdTableSelection; + selection: any; @Input() scopes: Array; selectedItem: any; @@ -63,8 +62,8 @@ export class RoleDetailsComponent implements OnChanges, OnInit { } ngOnChanges() { - if (this.selection.hasSelection) { - this.selectedItem = this.selection.first(); + if (this.selection) { + this.selectedItem = this.selection; // Build the scopes/permissions data used by the data table. const scopes_permissions: any[] = []; _.each(this.scopes, (scope) => {