You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
366 B

2 years ago
  1. export class MemberItem {
  2. id: number
  3. user: number
  4. role: number
  5. username: string
  6. rolename: string
  7. get isProjectAdmin(): boolean {
  8. return this.rolename === 'project_admin'
  9. }
  10. toObject(): Object {
  11. return {
  12. id: this.id,
  13. user: this.user,
  14. role: this.role,
  15. username: this.username,
  16. rolename: this.rolename
  17. }
  18. }
  19. }