|
@ -257,7 +257,7 @@ export default class NewActivityView extends Vue { |
|
|
async expandOffersToUserAndMarkRead() { |
|
|
async expandOffersToUserAndMarkRead() { |
|
|
this.showOffersDetails = !this.showOffersDetails; |
|
|
this.showOffersDetails = !this.showOffersDetails; |
|
|
if (this.showOffersDetails) { |
|
|
if (this.showOffersDetails) { |
|
|
await databaseUtil.updateAccountSettings(this.activeDid, { |
|
|
await databaseUtil.updateDidSpecificSettings(this.activeDid, { |
|
|
lastAckedOfferToUserJwtId: this.newOffersToUser[0].jwtId, |
|
|
lastAckedOfferToUserJwtId: this.newOffersToUser[0].jwtId, |
|
|
}); |
|
|
}); |
|
|
if (USE_DEXIE_DB) { |
|
|
if (USE_DEXIE_DB) { |
|
@ -285,7 +285,7 @@ export default class NewActivityView extends Vue { |
|
|
); |
|
|
); |
|
|
if (index !== -1 && index < this.newOffersToUser.length - 1) { |
|
|
if (index !== -1 && index < this.newOffersToUser.length - 1) { |
|
|
// Set to the next offer's jwtId |
|
|
// Set to the next offer's jwtId |
|
|
await databaseUtil.updateAccountSettings(this.activeDid, { |
|
|
await databaseUtil.updateDidSpecificSettings(this.activeDid, { |
|
|
lastAckedOfferToUserJwtId: this.newOffersToUser[index + 1].jwtId, |
|
|
lastAckedOfferToUserJwtId: this.newOffersToUser[index + 1].jwtId, |
|
|
}); |
|
|
}); |
|
|
if (USE_DEXIE_DB) { |
|
|
if (USE_DEXIE_DB) { |
|
@ -295,7 +295,7 @@ export default class NewActivityView extends Vue { |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
// it's the last entry (or not found), so just keep it the same |
|
|
// it's the last entry (or not found), so just keep it the same |
|
|
await databaseUtil.updateAccountSettings(this.activeDid, { |
|
|
await databaseUtil.updateDidSpecificSettings(this.activeDid, { |
|
|
lastAckedOfferToUserJwtId: this.lastAckedOfferToUserJwtId, |
|
|
lastAckedOfferToUserJwtId: this.lastAckedOfferToUserJwtId, |
|
|
}); |
|
|
}); |
|
|
if (USE_DEXIE_DB) { |
|
|
if (USE_DEXIE_DB) { |
|
@ -319,7 +319,7 @@ export default class NewActivityView extends Vue { |
|
|
this.showOffersToUserProjectsDetails = |
|
|
this.showOffersToUserProjectsDetails = |
|
|
!this.showOffersToUserProjectsDetails; |
|
|
!this.showOffersToUserProjectsDetails; |
|
|
if (this.showOffersToUserProjectsDetails) { |
|
|
if (this.showOffersToUserProjectsDetails) { |
|
|
await databaseUtil.updateAccountSettings(this.activeDid, { |
|
|
await databaseUtil.updateDidSpecificSettings(this.activeDid, { |
|
|
lastAckedOfferToUserProjectsJwtId: |
|
|
lastAckedOfferToUserProjectsJwtId: |
|
|
this.newOffersToUserProjects[0].jwtId, |
|
|
this.newOffersToUserProjects[0].jwtId, |
|
|
}); |
|
|
}); |
|
@ -349,7 +349,7 @@ export default class NewActivityView extends Vue { |
|
|
); |
|
|
); |
|
|
if (index !== -1 && index < this.newOffersToUserProjects.length - 1) { |
|
|
if (index !== -1 && index < this.newOffersToUserProjects.length - 1) { |
|
|
// Set to the next offer's jwtId |
|
|
// Set to the next offer's jwtId |
|
|
await databaseUtil.updateAccountSettings(this.activeDid, { |
|
|
await databaseUtil.updateDidSpecificSettings(this.activeDid, { |
|
|
lastAckedOfferToUserProjectsJwtId: |
|
|
lastAckedOfferToUserProjectsJwtId: |
|
|
this.newOffersToUserProjects[index + 1].jwtId, |
|
|
this.newOffersToUserProjects[index + 1].jwtId, |
|
|
}); |
|
|
}); |
|
@ -361,7 +361,7 @@ export default class NewActivityView extends Vue { |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
// it's the last entry (or not found), so just keep it the same |
|
|
// it's the last entry (or not found), so just keep it the same |
|
|
await databaseUtil.updateAccountSettings(this.activeDid, { |
|
|
await databaseUtil.updateDidSpecificSettings(this.activeDid, { |
|
|
lastAckedOfferToUserProjectsJwtId: |
|
|
lastAckedOfferToUserProjectsJwtId: |
|
|
this.lastAckedOfferToUserProjectsJwtId, |
|
|
this.lastAckedOfferToUserProjectsJwtId, |
|
|
}); |
|
|
}); |
|
|