Display all Project Contributors on About page using GitHub API (#382)

This commit is contained in:
wiz
2021-03-09 03:56:41 +09:00
committed by GitHub
parent 8f5f10fb2b
commit 0134188582
4 changed files with 45 additions and 4 deletions

View File

@@ -19,9 +19,11 @@ export class AboutComponent implements OnInit, OnDestroy {
paymentForm: FormGroup;
donationStatus = 1;
sponsors$: Observable<any>;
contributors$: Observable<any>;
donationObj: any;
sponsorsEnabled = this.stateService.env.OFFICIAL_MEMPOOL_SPACE;
sponsors = null;
contributors = null;
requestSubscription: Subscription | undefined;
constructor(
@@ -51,6 +53,11 @@ export class AboutComponent implements OnInit, OnDestroy {
.subscribe((sponsors) => {
this.sponsors = sponsors;
});
this.apiService.getContributor$()
.subscribe((contributors) => {
this.contributors = contributors;
});
}
ngOnDestroy() {