fix visibility after adding contact, and some messaging
This commit is contained in:
@@ -628,6 +628,10 @@ export default class ContactsView extends Vue {
|
||||
message =
|
||||
"A contact with that DID is already in your contact list. Edit them directly below.";
|
||||
}
|
||||
if (err.name === "ConstraintError") {
|
||||
message +=
|
||||
"Check that the contact doesn't conflict with any you already have.";
|
||||
}
|
||||
this.$notify(
|
||||
{
|
||||
group: "alert",
|
||||
@@ -782,7 +786,7 @@ export default class ContactsView extends Vue {
|
||||
(visibility
|
||||
? "Are you sure you want to make your activity visible to them?"
|
||||
: "Are you sure you want to hide all your activity from them?");
|
||||
if (visibilityPrompt && confirm(visibilityPrompt)) {
|
||||
if (!visibilityPrompt || confirm(visibilityPrompt)) {
|
||||
const url =
|
||||
this.apiServer +
|
||||
"/api/report/" +
|
||||
@@ -911,7 +915,7 @@ export default class ContactsView extends Vue {
|
||||
}
|
||||
|
||||
private nameForContact(contact?: Contact, capitalize?: boolean): string {
|
||||
return contact?.name || (capitalize ? "T" : "t") + "this unnamed user";
|
||||
return contact?.name || (capitalize ? "T" : "t") + "his unnamed user";
|
||||
}
|
||||
|
||||
async onClickAddGive(fromDid: string, toDid: string): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user