make a backup download for browsers that don't get it automatically #101

Merged
trentlarson merged 5 commits from another-download into master 2024-01-02 02:28:23 +00:00
Showing only changes of commit 11070755d6 - Show all commits

View File

@@ -587,12 +587,19 @@ export default class ContactsView extends Vue {
})
.catch((err) => {
console.error("Error when adding contact to storage:", err);
let message = "An error prevented this import.";
if (
err.message?.indexOf("Key already exists in the object store.") > -1
) {
message =
"A contact with that DID is already in your contact list. Edit them directly below.";
}
this.$notify(
{
group: "alert",
type: "danger",
title: "Contact Not Added",
text: "An error prevented this import.",
text: message,
},
-1,
);