File tree Expand file tree Collapse file tree 4 files changed +23
-13
lines changed
grants/templates/grants/components Expand file tree Collapse file tree 4 files changed +23
-13
lines changed Original file line number Diff line number Diff line change @@ -244,12 +244,19 @@ Vue.mixin({
244
244
container . scrollIntoView ( true ) ;
245
245
} ,
246
246
hasHistoricalMatches ( grant ) {
247
- return grant . clr_matches . length && grant . clr_matches . filter ( a => a . claim_tx ) . length ;
247
+ return grant . clr_matches . length &&
248
+ (
249
+ grant . clr_matches . filter ( a => a . claim_tx ) . length ||
250
+ grant . clr_matches . filter ( a => [ 8 , 9 ] . includes ( a . round_number ) ) . length
251
+ ) ;
248
252
} ,
249
253
canClaimMatch ( grant ) {
250
- return grant . clr_matches . length && grant . clr_matches . filter (
251
- a => a . claim_tx === null &&
252
- a . grant_payout ) . length ;
254
+ return grant . clr_matches . length &&
255
+ grant . clr_matches . filter ( a =>
256
+ a . claim_tx === null &&
257
+ a . grant_payout &&
258
+ [ 'ready' , 'pending' ] . includes ( a . grant_payout . status )
259
+ ) . length ;
253
260
} ,
254
261
filterPendingClaims ( matches ) {
255
262
return this . filterMatchingPayout ( matches ) . filter (
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Vue.component('matching-claim', {
18
18
return this . status === 'pending' ;
19
19
} ,
20
20
isKYCPending ( ) {
21
- return ! this . match . ready_for_payout ;
21
+ return ! this . match . ready_for_payout && this . match . grant_payout . status == 'ready' ;
22
22
} ,
23
23
claimStartDate ( ) {
24
24
return this . match . grant_payout . grant_clrs [ 0 ] . claim_start_date ;
Original file line number Diff line number Diff line change @@ -23,10 +23,17 @@ <h4 class="d-lg-block d-none font-weight-bold font-bigger-1 gc-font-base">[[ mat
23
23
< span class ="font-body text-grey-500 "> [[ match.claim_date ]]</ span >
24
24
</ b-col >
25
25
< b-col v-else-if ="match.grant_payout.status === 'funding_withdrawn' " lg ="4 " sm ="12 " class ="pt-2 pt-lg-0 ">
26
- < p class ="text-grey-400 font-weight-bold returned_text ">
27
- Returned to matching pool
26
+
27
+ < p v-if ="match.round_number in ['8', '9'] " class ="text-highlight-green font-weight-bold claimed_text ">
28
+ < i class ="far fa-check mr-2 "> </ i > Claimed
28
29
</ p >
29
- < span class ="font-body text-grey-500 "> [[ match.funding_withdrawal_date ]]</ span >
30
+
31
+ < template v-else >
32
+ < p class ="text-grey-400 font-weight-bold returned_text ">
33
+ Returned to matching pool
34
+ </ p >
35
+ < span class ="font-body text-grey-500 "> [[ match.funding_withdrawal_date ]]</ span >
36
+ </ template >
30
37
</ b-col >
31
38
< b-col class ="text-lg-right mt-2 mt-lg-0 ">
32
39
< a v-if ="match.claim_tx && match.claim_tx != 'NA' "
Original file line number Diff line number Diff line change @@ -24,14 +24,10 @@ <h4 class="d-lg-block d-none font-weight-bold font-bigger-1 gc-font-base text-gr
24
24
</ template >
25
25
</ span >
26
26
</ template >
27
- < template v-else ="isKYCPending ">
27
+ < template v-else-if ="isKYCPending ">
28
28
< h4 class ="d-lg-block d-none font-weight-bold font-bigger-1 text-grey-400 gc-font-base "> Complete KYC to claim</ h4 >
29
29
< span class ="d-lg-none d-block font-weight-bold font-subheader text-grey-400 "> Complete KYC to claim</ span >
30
30
</ template >
31
- < template v-else >
32
- < h4 class ="d-lg-block d-none font-weight-bold font-bigger-1 text-grey-400 gc-font-base "> No Action</ h4 >
33
- < span class ="d-lg-none d-block font-weight-bold font-subheader text-grey-400 "> No Action</ span >
34
- </ template >
35
31
</ b-col >
36
32
37
33
< b-col class ="text-lg-right mt-3 mt-lg-0 ">
You can’t perform that action at this time.
0 commit comments