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',
})
export class RoleDetailsComponent implements OnChanges, OnInit {
@Input()
- selection: CdTableSelection;
+ selection: any;
@Input()
scopes: Array<string>;
selectedItem: any;
}
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) => {