|
@ -110,6 +110,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div id="ContactActions" class="flex gap-1.5 mt-2"> |
|
|
<div id="ContactActions" class="flex gap-1.5 mt-2"> |
|
|
|
|
|
<div v-if="activeDid"> |
|
|
<button |
|
|
<button |
|
|
v-if="contact.seesMe" |
|
|
v-if="contact.seesMe" |
|
|
class="text-sm uppercase bg-slate-500 text-white px-2 py-1.5 rounded-md" |
|
|
class="text-sm uppercase bg-slate-500 text-white px-2 py-1.5 rounded-md" |
|
@ -126,18 +127,18 @@ |
|
|
> |
|
|
> |
|
|
<fa icon="eye-slash" class="fa-fw" /> |
|
|
<fa icon="eye-slash" class="fa-fw" /> |
|
|
</button> |
|
|
</button> |
|
|
|
|
|
|
|
|
<button |
|
|
<button |
|
|
class="text-sm uppercase bg-slate-500 text-white px-2 py-1.5 rounded-md" |
|
|
class="text-sm uppercase bg-slate-500 text-white px-2 py-1.5 rounded-md" |
|
|
@click="checkVisibility(contact)" |
|
|
@click="checkVisibility(contact)" |
|
|
title="Check Visibility" |
|
|
title="Check Visibility" |
|
|
|
|
|
v-if="activeDid" |
|
|
> |
|
|
> |
|
|
<fa icon="rotate" class="fa-fw" /> |
|
|
<fa icon="rotate" class="fa-fw" /> |
|
|
</button> |
|
|
</button> |
|
|
|
|
|
|
|
|
<button |
|
|
<button |
|
|
@click="register(contact)" |
|
|
@click="register(contact)" |
|
|
class="text-sm uppercase bg-slate-500 text-white ml-6 px-2 py-1.5 rounded-md" |
|
|
class="text-sm uppercase bg-slate-500 text-white ml-6 px-2 py-1.5 rounded-md" |
|
|
|
|
|
v-if="activeDid" |
|
|
> |
|
|
> |
|
|
<fa |
|
|
<fa |
|
|
v-if="contact.registered" |
|
|
v-if="contact.registered" |
|
@ -152,6 +153,7 @@ |
|
|
title="Registration Unknown" |
|
|
title="Registration Unknown" |
|
|
/> |
|
|
/> |
|
|
</button> |
|
|
</button> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<button |
|
|
<button |
|
|
@click="deleteContact(contact)" |
|
|
@click="deleteContact(contact)" |
|
@ -540,17 +542,23 @@ export default class ContactsView extends Vue { |
|
|
(a: Contact, b) => (a.name || "").localeCompare(b.name || ""), |
|
|
(a: Contact, b) => (a.name || "").localeCompare(b.name || ""), |
|
|
allContacts, |
|
|
allContacts, |
|
|
); |
|
|
); |
|
|
|
|
|
let addedMessage; |
|
|
|
|
|
if (this.activeDid) { |
|
|
this.setVisibility(newContact, true, false); |
|
|
this.setVisibility(newContact, true, false); |
|
|
|
|
|
addedMessage = |
|
|
|
|
|
newContact.name + |
|
|
|
|
|
" was added, and your activity is visible to them."; |
|
|
|
|
|
} else { |
|
|
|
|
|
addedMessage = newContact.name + " was added."; |
|
|
|
|
|
} |
|
|
this.$notify( |
|
|
this.$notify( |
|
|
{ |
|
|
{ |
|
|
group: "alert", |
|
|
group: "alert", |
|
|
type: "success", |
|
|
type: "success", |
|
|
title: "Contact Added", |
|
|
title: "Contact Added", |
|
|
text: |
|
|
text: addedMessage, |
|
|
newContact.name + |
|
|
|
|
|
" was added, and your activity is visible to them.", |
|
|
|
|
|
}, |
|
|
}, |
|
|
-1, |
|
|
5000, |
|
|
); |
|
|
); |
|
|
// putting this last so that it shows on the top |
|
|
// putting this last so that it shows on the top |
|
|
this.$notify( |
|
|
this.$notify( |
|
|