feat: Creates component show all contact info (#2252)

* feat: Adds component to show contact fields
* feat: Creates component show all contact info
This commit is contained in:
Nithin David Thomas
2021-05-13 15:40:36 +05:30
committed by GitHub
parent 73d30b7f69
commit d35e8cfd98
4 changed files with 90 additions and 8 deletions

View File

@@ -13,8 +13,8 @@
</h2>
<h3 class="sub-block-title contact--work">
{{ contact.title }}
<i v-if="contact.company.name" class="icon ion-minus-round" />
<span class="company-name">{{ contact.company.name }}</span>
<i v-if="company.name" class="icon ion-minus-round" />
<span class="company-name">{{ company.name }}</span>
</h3>
<p v-if="additionalAttributes.description" class="contact--bio">
{{ additionalAttributes.description }}
@@ -69,6 +69,10 @@ export default {
return { twitter: twitterScreenName, ...(socialProfiles || {}) };
},
company() {
const { company = {} } = this.contact;
return company;
},
},
methods: {
onEditClick() {