forked from trent_larson/crowd-funder-for-time-pwa
make notification errors go away automatically
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user