separate giver and receiver conflict checks

This commit is contained in:
2026-01-20 19:34:52 -07:00
parent 29b2d9927d
commit 6587506d83

View File

@@ -133,7 +133,7 @@
:all-contacts="allContacts"
:active-did="activeDid"
:all-my-dids="allMyDids"
:conflict-checker="wouldCreateConflict"
:conflict-checker="wouldCreateConflictWithRecipient"
:from-project-id="providerProjectId"
:to-project-id="fulfillsProjectId"
:giver="currentGiver"
@@ -188,7 +188,7 @@
:all-contacts="allContacts"
:active-did="activeDid"
:all-my-dids="allMyDids"
:conflict-checker="wouldCreateConflict"
:conflict-checker="wouldCreateConflictWithGiver"
:from-project-id="providerProjectId"
:to-project-id="fulfillsProjectId"
:giver="currentGiver"
@@ -930,7 +930,7 @@ export default class GiftedDetails extends Vue {
/**
* Check if selecting an entity would create a conflict
*/
wouldCreateConflict(identifier: string): boolean {
wouldCreateConflictWithGiver(identifier: string): boolean {
// Check if it would conflict with giver
if (this.giverDid === identifier) {
return true;
@@ -938,6 +938,9 @@ export default class GiftedDetails extends Vue {
if (this.providerProjectId === identifier) {
return true;
}
return false;
}
wouldCreateConflictWithRecipient(identifier: string): boolean {
// Check if it would conflict with recipient
if (this.recipientDid === identifier) {
return true;