diff --git a/src/components/GiftedDialog.vue b/src/components/GiftedDialog.vue index 076e1f0d..af6dee5c 100644 --- a/src/components/GiftedDialog.vue +++ b/src/components/GiftedDialog.vue @@ -80,16 +80,29 @@ stepType === 'recipient' || (stepType === 'giver' && isFromProjectView) " - class="cursor-pointer" + :class="{ + 'cursor-pointer': !wouldCreateConflict(activeDid), + 'cursor-not-allowed opacity-50': wouldCreateConflict(activeDid) + }" @click=" - stepType === 'recipient' + !wouldCreateConflict(activeDid) && + (stepType === 'recipient' ? selectRecipient({ did: activeDid, name: 'You' }) - : selectGiver({ did: activeDid, name: 'You' }) + : selectGiver({ did: activeDid, name: 'You' })) " > - +

You

@@ -119,11 +132,15 @@
  • @@ -141,7 +158,10 @@

    {{ contact.name || contact.did }}

    @@ -425,9 +445,22 @@ @click="explainData()" />

    + + +
    +

    + + Cannot record: Same person selected as both giver and recipient +

    +
    +