member list is added

This commit is contained in:
병준 박 2022-08-11 05:35:25 +00:00
parent 19355220df
commit 90277b9b08

View File

@ -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<any> = new Subject<any>();
@ -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));
}
/**