From 90277b9b083f901d04cc9f7ed072d80682b07ca4 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Thu, 11 Aug 2022 05:35:25 +0000 Subject: [PATCH] member list is added --- .../member/partner/components/list.component.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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)); } /**