|
@ -17,7 +17,10 @@ |
|
|
|
|
|
|
|
|
<!-- Display a single row with the name of "New Offers To You" with a count. --> |
|
|
<!-- Display a single row with the name of "New Offers To You" with a count. --> |
|
|
<div> |
|
|
<div> |
|
|
<span class="text-lg font-medium">{{ newOffersToUser.length }}</span> |
|
|
<span class="text-lg font-medium" |
|
|
|
|
|
>{{ newOffersToUser.length |
|
|
|
|
|
}}{{ newOffersToUserHitLimit ? "+" : "" }}</span |
|
|
|
|
|
> |
|
|
<span class="text-lg font-medium ml-4" |
|
|
<span class="text-lg font-medium ml-4" |
|
|
>New Offer{{ newOffersToUser.length === 1 ? "" : "s" }} To You</span |
|
|
>New Offer{{ newOffersToUser.length === 1 ? "" : "s" }} To You</span |
|
|
> |
|
|
> |
|
@ -68,9 +71,10 @@ |
|
|
|
|
|
|
|
|
<!-- Display a single row with the name of "New Offers To Your Projects" with a count. --> |
|
|
<!-- Display a single row with the name of "New Offers To Your Projects" with a count. --> |
|
|
<div class="mt-4"> |
|
|
<div class="mt-4"> |
|
|
<span class="text-lg font-medium">{{ |
|
|
<span class="text-lg font-medium" |
|
|
newOffersToUserProjects.length |
|
|
>{{ newOffersToUserProjects.length |
|
|
}}</span> |
|
|
}}{{ newOffersToUserProjectsHitLimit ? "+" : "" }}</span |
|
|
|
|
|
> |
|
|
<span class="text-lg font-medium ml-4" |
|
|
<span class="text-lg font-medium ml-4" |
|
|
>New Offer{{ newOffersToUserProjects.length === 1 ? "" : "s" }} To Your |
|
|
>New Offer{{ newOffersToUserProjects.length === 1 ? "" : "s" }} To Your |
|
|
Projects</span |
|
|
Projects</span |
|
@ -162,7 +166,9 @@ export default class NewActivityView extends Vue { |
|
|
lastAckedOfferToUserJwtId = ""; |
|
|
lastAckedOfferToUserJwtId = ""; |
|
|
lastAckedOfferToUserProjectsJwtId = ""; |
|
|
lastAckedOfferToUserProjectsJwtId = ""; |
|
|
newOffersToUser: Array<OfferSummaryRecord> = []; |
|
|
newOffersToUser: Array<OfferSummaryRecord> = []; |
|
|
|
|
|
newOffersToUserHitLimit = false; |
|
|
newOffersToUserProjects: Array<OfferToPlanSummaryRecord> = []; |
|
|
newOffersToUserProjects: Array<OfferToPlanSummaryRecord> = []; |
|
|
|
|
|
newOffersToUserProjectsHitLimit = false; |
|
|
|
|
|
|
|
|
showOffersDetails = false; |
|
|
showOffersDetails = false; |
|
|
showOffersToUserProjectsDetails = false; |
|
|
showOffersToUserProjectsDetails = false; |
|
@ -185,18 +191,24 @@ export default class NewActivityView extends Vue { |
|
|
if (allAccounts.length > 0) { |
|
|
if (allAccounts.length > 0) { |
|
|
this.allMyDids = allAccounts.map((acc) => acc.did); |
|
|
this.allMyDids = allAccounts.map((acc) => acc.did); |
|
|
} |
|
|
} |
|
|
this.newOffersToUser = await getNewOffersToUser( |
|
|
|
|
|
|
|
|
const offersToUserData = await getNewOffersToUser( |
|
|
this.axios, |
|
|
this.axios, |
|
|
this.apiServer, |
|
|
this.apiServer, |
|
|
this.activeDid, |
|
|
this.activeDid, |
|
|
this.lastAckedOfferToUserJwtId, |
|
|
this.lastAckedOfferToUserJwtId, |
|
|
); |
|
|
); |
|
|
this.newOffersToUserProjects = await getNewOffersToUserProjects( |
|
|
this.newOffersToUser = offersToUserData.data; |
|
|
|
|
|
this.newOffersToUserHitLimit = offersToUserData.hitLimit; |
|
|
|
|
|
|
|
|
|
|
|
const offersToUserProjectsData = await getNewOffersToUserProjects( |
|
|
this.axios, |
|
|
this.axios, |
|
|
this.apiServer, |
|
|
this.apiServer, |
|
|
this.activeDid, |
|
|
this.activeDid, |
|
|
this.lastAckedOfferToUserProjectsJwtId, |
|
|
this.lastAckedOfferToUserProjectsJwtId, |
|
|
); |
|
|
); |
|
|
|
|
|
this.newOffersToUserProjects = offersToUserProjectsData.data; |
|
|
|
|
|
this.newOffersToUserProjectsHitLimit = offersToUserProjectsData.hitLimit; |
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any |
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any |
|
|
} catch (err: any) { |
|
|
} catch (err: any) { |
|
|