|
@ -139,7 +139,7 @@ |
|
|
<button |
|
|
<button |
|
|
v-if="contact.seesMe" |
|
|
v-if="contact.seesMe" |
|
|
class="text-sm uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white mx-0.5 my-0.5 px-2 py-1.5 rounded-md" |
|
|
class="text-sm uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white mx-0.5 my-0.5 px-2 py-1.5 rounded-md" |
|
|
@click="promptSetVisibility(contact, false)" |
|
|
@click="confirmSetVisibility(contact, false)" |
|
|
title="They can see you" |
|
|
title="They can see you" |
|
|
> |
|
|
> |
|
|
<fa icon="eye" class="fa-fw" /> |
|
|
<fa icon="eye" class="fa-fw" /> |
|
@ -147,7 +147,7 @@ |
|
|
<button |
|
|
<button |
|
|
v-else |
|
|
v-else |
|
|
class="text-sm uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white mx-0.5 my-0.5 px-2 py-1.5 rounded-md" |
|
|
class="text-sm uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white mx-0.5 my-0.5 px-2 py-1.5 rounded-md" |
|
|
@click="promptSetVisibility(contact, true)" |
|
|
@click="confirmSetVisibility(contact, true)" |
|
|
title="They cannot see you" |
|
|
title="They cannot see you" |
|
|
> |
|
|
> |
|
|
<fa icon="eye-slash" class="fa-fw" /> |
|
|
<fa icon="eye-slash" class="fa-fw" /> |
|
@ -161,7 +161,7 @@ |
|
|
<fa icon="rotate" class="fa-fw" /> |
|
|
<fa icon="rotate" class="fa-fw" /> |
|
|
</button> |
|
|
</button> |
|
|
<button |
|
|
<button |
|
|
@click="promptRegister(contact)" |
|
|
@click="confirmRegister(contact)" |
|
|
class="text-sm uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white ml-6 px-2 py-1.5 rounded-md" |
|
|
class="text-sm uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white ml-6 px-2 py-1.5 rounded-md" |
|
|
v-if="activeDid" |
|
|
v-if="activeDid" |
|
|
title="Registration" |
|
|
title="Registration" |
|
@ -176,7 +176,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<button |
|
|
<button |
|
|
@click="promptDeleteContact(contact)" |
|
|
@click="confirmDeleteContact(contact)" |
|
|
class="text-sm uppercase bg-gradient-to-b from-rose-500 to-rose-800 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white ml-6 px-2 py-1.5 rounded-md" |
|
|
class="text-sm uppercase bg-gradient-to-b from-rose-500 to-rose-800 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white ml-6 px-2 py-1.5 rounded-md" |
|
|
title="Delete" |
|
|
title="Delete" |
|
|
> |
|
|
> |
|
@ -189,7 +189,7 @@ |
|
|
> |
|
|
> |
|
|
<button |
|
|
<button |
|
|
class="text-sm bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-1.5 rounded-l-md" |
|
|
class="text-sm bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-1.5 rounded-l-md" |
|
|
@click="promptShowGiftedDialog(activeDid, contact.did)" |
|
|
@click="confirmShowGiftedDialog(activeDid, contact.did)" |
|
|
:title="givenByMeDescriptions[contact.did] || ''" |
|
|
:title="givenByMeDescriptions[contact.did] || ''" |
|
|
> |
|
|
> |
|
|
To: |
|
|
To: |
|
@ -210,7 +210,7 @@ |
|
|
|
|
|
|
|
|
<button |
|
|
<button |
|
|
class="text-sm bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white -ml-1.5 px-2 py-1.5 rounded-r-md border-l" |
|
|
class="text-sm bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white -ml-1.5 px-2 py-1.5 rounded-r-md border-l" |
|
|
@click="promptShowGiftedDialog(contact.did, this.activeDid)" |
|
|
@click="confirmShowGiftedDialog(contact.did, this.activeDid)" |
|
|
:title="givenToMeDescriptions[contact.did] || ''" |
|
|
:title="givenToMeDescriptions[contact.did] || ''" |
|
|
> |
|
|
> |
|
|
From: |
|
|
From: |
|
@ -782,7 +782,7 @@ export default class ContactsView extends Vue { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// prompt with confirmation if they want to delete a contact |
|
|
// prompt with confirmation if they want to delete a contact |
|
|
promptDeleteContact(contact: Contact) { |
|
|
confirmDeleteContact(contact: Contact) { |
|
|
this.$notify( |
|
|
this.$notify( |
|
|
{ |
|
|
{ |
|
|
group: "modal", |
|
|
group: "modal", |
|
@ -808,8 +808,8 @@ export default class ContactsView extends Vue { |
|
|
this.contacts = R.without([contact], this.contacts); |
|
|
this.contacts = R.without([contact], this.contacts); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// prompt to register a new contact |
|
|
// confirm to register a new contact |
|
|
async promptRegister(contact: Contact) { |
|
|
async confirmRegister(contact: Contact) { |
|
|
this.$notify( |
|
|
this.$notify( |
|
|
{ |
|
|
{ |
|
|
group: "modal", |
|
|
group: "modal", |
|
@ -937,7 +937,7 @@ export default class ContactsView extends Vue { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
async promptSetVisibility(contact: Contact, visibility: boolean) { |
|
|
async confirmSetVisibility(contact: Contact, visibility: boolean) { |
|
|
const visibilityPrompt = visibility |
|
|
const visibilityPrompt = visibility |
|
|
? "Are you sure you want to make your activity visible to them?" |
|
|
? "Are you sure you want to make your activity visible to them?" |
|
|
: "Are you sure you want to hide all your activity from them?"; |
|
|
: "Are you sure you want to hide all your activity from them?"; |
|
@ -1089,7 +1089,7 @@ export default class ContactsView extends Vue { |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
promptShowGiftedDialog(giverDid: string, recipientDid: string) { |
|
|
confirmShowGiftedDialog(giverDid: string, recipientDid: string) { |
|
|
// if they have unconfirmed amounts, ask to confirm those |
|
|
// if they have unconfirmed amounts, ask to confirm those |
|
|
if ( |
|
|
if ( |
|
|
recipientDid === this.activeDid && |
|
|
recipientDid === this.activeDid && |
|
|