diff --git a/src/app/modules/admin/member/partner/components/list.component.ts b/src/app/modules/admin/member/partner/components/list.component.ts index a828fd2..be40978 100644 --- a/src/app/modules/admin/member/partner/components/list.component.ts +++ b/src/app/modules/admin/member/partner/components/list.component.ts @@ -39,6 +39,10 @@ import { MatDialog } from '@angular/material/dialog'; import { SiteService } from 'app/modules/polyglot/domain/services/site.service'; import { Site } from 'app/modules/protobuf/models/domain/site_pb'; import { MembeerService } from 'app/modules/polyglot/member/services/member.service'; +import { + Member, + MemberModel, +} from 'app/modules/protobuf/models/member/member_pb'; @Component({ selector: 'partner-list', templateUrl: './list.component.html', @@ -84,6 +88,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { selectedPartner?: Partner; pagination?: PartnerPagination; sites!: Site[]; + __members: MemberModel[] = []; private _unsubscribeAll: Subject = new Subject(); @@ -129,6 +134,14 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { this.sites = result.getSitesList(); }) .catch((reson) => console.log(reson)); + + this.__memberService + .listMembers() + .then((result) => { + this.__members = result.getMembersList(); + console.log('member list', this.__members); + }) + .catch((reson) => console.log(reson)); } /**