Merge branch 'build-improvement' into performance-optimizations-testing
This commit is contained in:
@@ -239,21 +239,7 @@ export default class ContactEditView extends Vue {
|
|||||||
this.contact = contact;
|
this.contact = contact;
|
||||||
this.contactName = contact.name || "";
|
this.contactName = contact.name || "";
|
||||||
this.contactNotes = contact.notes || "";
|
this.contactNotes = contact.notes || "";
|
||||||
|
this.contactMethods = contact.contactMethods || [];
|
||||||
// Ensure contactMethods is a valid array of ContactMethod objects
|
|
||||||
if (Array.isArray(contact.contactMethods)) {
|
|
||||||
this.contactMethods = contact.contactMethods.filter((method) => {
|
|
||||||
return (
|
|
||||||
method &&
|
|
||||||
typeof method === "object" &&
|
|
||||||
typeof method.label === "string" &&
|
|
||||||
typeof method.type === "string" &&
|
|
||||||
typeof method.value === "string"
|
|
||||||
);
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
this.contactMethods = [];
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.notify.error(
|
this.notify.error(
|
||||||
`${NOTIFY_CONTACT_NOT_FOUND.message} ${contactDid}`,
|
`${NOTIFY_CONTACT_NOT_FOUND.message} ${contactDid}`,
|
||||||
|
|||||||
@@ -7,13 +7,13 @@
|
|||||||
<!-- Breadcrumb -->
|
<!-- Breadcrumb -->
|
||||||
<div id="ViewBreadcrumb" class="mb-8">
|
<div id="ViewBreadcrumb" class="mb-8">
|
||||||
<h1 id="ViewHeading" class="text-lg text-center font-light relative px-7">
|
<h1 id="ViewHeading" class="text-lg text-center font-light relative px-7">
|
||||||
<!-- Back -->
|
<!-- Go to 'contacts' instead of just 'back' because they could get here from an edit page (and going back there is annoying). -->
|
||||||
<button
|
<router-link
|
||||||
|
:to="{ name: 'contacts' }"
|
||||||
class="text-lg text-center px-2 py-1 absolute -left-2 -top-1"
|
class="text-lg text-center px-2 py-1 absolute -left-2 -top-1"
|
||||||
@click="goBack"
|
|
||||||
>
|
>
|
||||||
<font-awesome icon="chevron-left" class="fa-fw"></font-awesome>
|
<font-awesome icon="chevron-left" class="fa-fw"></font-awesome>
|
||||||
</button>
|
</router-link>
|
||||||
Identifier Details
|
Identifier Details
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user