@ -170,7 +170,7 @@
< / div >
< / div >
< a class = "cursor-pointer" @click ="onClickLoadClaim(projec tId)" >
< a class = "cursor-pointer" @click ="onClickLoadClaim(jw tId)" >
< font -awesome icon = "file-lines" class = "pl-2 pt-1 text-blue-500" / >
< / a >
< / div >
@ -303,10 +303,7 @@
{ { offer . objectDescription } }
< / div >
< div class = "flex justify-between" >
< a
class = "cursor-pointer"
@ click = "onClickLoadClaim(offer.jwtId as string)"
>
< a class = "cursor-pointer" @click ="onClickLoadClaim(offer.jwtId)" >
< font -awesome
icon = "file-lines"
class = "pl-2 pt-1 text-blue-500"
@ -606,7 +603,6 @@ import { AxiosError } from "axios";
import { Component , Vue } from "vue-facing-decorator" ;
import VueMarkdown from "vue-markdown-render" ;
import { Router } from "vue-router" ;
import { useClipboard } from "@vueuse/core" ;
import {
GenericVerifiableCredential ,
@ -746,6 +742,8 @@ export default class ProjectViewView extends Vue {
} | null = null ;
/** DIDs that can see issuer information */
issuerVisibleToDids : Array < string > = [ ] ;
/** Project JWT ID */
jwtId = "" ;
/** Project location data */
latitude = 0 ;
loadingTotals = false ;
@ -910,6 +908,7 @@ export default class ProjectViewView extends Vue {
this . allContacts ,
) ;
this . issuerVisibleToDids = resp . data . issuerVisibleToDids || [ ] ;
this . jwtId = resp . data . id ;
this . name = resp . data . claim ? . name || "(no name)" ;
this . description = resp . data . claim ? . description || "" ;
this . truncatedDesc = this . description . slice ( 0 , this . truncateLength ) ;
@ -1509,11 +1508,10 @@ export default class ProjectViewView extends Vue {
if ( ! this . projectId ) return ;
try {
const settings = await this . $accountSettings ( ) ;
const starredIds = settings . starredPlanHandleIds || [ ] ;
if ( ! this . isStarred ) {
/ / A d d t o s t a r r e d p r o j e c t s
const settings = await databaseUtil . retrieveSettingsForActiveAccount ( ) ;
const starredIds = settings . starredPlanHandleIds || [ ] ;
if ( ! starredIds . includes ( this . projectId ) ) {
const newStarredIds = [ ... starredIds , this . projectId ] ;
const newIdsParam = JSON . stringify ( newStarredIds ) ;
@ -1526,20 +1524,16 @@ export default class ProjectViewView extends Vue {
this . isStarred = true ;
} else {
/ / e s l i n t - d i s a b l e - n e x t - l i n e n o - c o n s o l e
console . log (
"Still getting a bad result from SQL update to star a project." ,
) ;
logger . error ( "Got a bad result from SQL update to star a project." ) ;
}
}
if ( ! settings . lastAckedStarredPlanChangesJwtId ) {
await databaseUtil . updateDidSpecificSettings ( this . activeDid , {
lastAckedStarredPlanChangesJwtId : settings . lastViewedClaim Id,
lastAckedStarredPlanChangesJwtId : this . jwt Id,
} ) ;
}
} else {
/ / R e m o v e f r o m s t a r r e d p r o j e c t s
const settings = await databaseUtil . retrieveSettingsForActiveAccount ( ) ;
const starredIds = settings . starredPlanHandleIds || [ ] ;
const updatedIds = starredIds . filter ( ( id ) => id !== this . projectId ) ;
const newIdsParam = JSON . stringify ( updatedIds ) ;