summaryrefslogtreecommitdiffstats
path: root/src/components/ContactDetails.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ContactDetails.vue')
-rw-r--r--src/components/ContactDetails.vue26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/components/ContactDetails.vue b/src/components/ContactDetails.vue
index 10c69a04..da1b7e87 100644
--- a/src/components/ContactDetails.vue
+++ b/src/components/ContactDetails.vue
@@ -23,17 +23,17 @@
<template>
<div id="contact-details" class="app-content-details">
<!-- nothing selected or contact not found -->
- <div v-if="!contact && !loading" id="emptycontent">
- <div class="icon-contacts" />
- <h2>{{ t('contacts', 'No contact selected') }}</h2>
- <p>{{ t('contacts', 'Select a contact on the list to begin') }}</p>
- </div>
+ <EmptyContent v-if="!contact && !loading" icon="icon-contacts-dark">
+ {{ t('contacts', 'No contact selected') }}
+ <template #desc>
+ {{ t('contacts', 'Select a contact on the list to begin') }}
+ </template>
+ </EmptyContent>
<!-- loading -->
- <div v-else-if="loading" id="emptycontent">
- <div class="icon-contacts" />
- <h2>{{ t('contacts', 'Loading') }}</h2>
- </div>
+ <EmptyContent v-else-if="loading" icon="icon-contacts-dark">
+ {{ t('contacts', 'Loading contacts …') }}
+ </EmptyContent>
<template v-else>
<!-- contact header -->
@@ -244,6 +244,7 @@ import validate from '../services/validate'
import AddNewProp from './ContactDetails/ContactDetailsAddNewProp'
import ContactAvatar from './ContactDetails/ContactDetailsAvatar'
import ContactProperty from './ContactDetails/ContactDetailsProperty'
+import EmptyContent from './EmptyContent'
import PropertyGroups from './Properties/PropertyGroups'
import PropertyRev from './Properties/PropertyRev'
import PropertySelect from './Properties/PropertySelect'
@@ -254,17 +255,18 @@ export default {
name: 'ContactDetails',
components: {
- Actions,
ActionButton,
ActionLink,
+ Actions,
AddNewProp,
ContactAvatar,
ContactProperty,
+ EmptyContent,
+ Modal,
+ Multiselect,
PropertyGroups,
PropertyRev,
PropertySelect,
- Modal,
- Multiselect,
},
props: {