make notification errors go away automatically

This commit is contained in:
2025-01-04 18:02:10 -07:00
parent 086ccce0bb
commit f405e7d02f
21 changed files with 71 additions and 72 deletions

View File

@@ -93,22 +93,21 @@ export default class ContactEditView extends Vue {
async created() {
const contactDid = (this.$route as RouteLocation).params.did;
if (!contactDid) {
const contact = await db.contacts.get(contactDid || "");
if (contact) {
this.contact = contact;
this.contactName = contact.name || "";
this.contactNotes = contact.notes || "";
} else {
this.$notify({
group: "alert",
type: "error",
type: "danger",
title: "Contact Not Found",
text: "There is no contact with that DID.",
});
(this.$router as Router).push({ path: "/contacts" });
return;
}
const contact = await db.contacts.get(contactDid);
if (contact) {
this.contact = contact;
this.contactName = contact.name || "";
this.contactNotes = contact.notes || "";
}
}
async saveEdit() {