import { Component, OnInit } from '@angular/core';
import { ListBase } from '@objects-view/list-base';
import { ActivatedRoute } from '@angular/router';
import { RefreshService } from '@shared/ui-api/refresh.service';
import { RoleListUiService } from '../role-list-ui.service';
import { IRoleModel } from '@fleio-api/client-user/roles/model/role.model';

@Component({
  selector: 'app-roles-list',
  templateUrl: './roles-list.component.html',
  styleUrls: ['./roles-list.component.scss']
})
export class RolesListComponent extends ListBase<IRoleModel> implements OnInit {
  constructor(
    private route: ActivatedRoute, private roleListUiService: RoleListUiService,
    private refreshService: RefreshService,
  ) {
    super(route, roleListUiService, refreshService, 'roles');
  }
}
