diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/ContactDetails.vue | 10 | ||||
-rw-r--r-- | src/components/Properties/PropertyText.vue | 6 |
2 files changed, 13 insertions, 3 deletions
diff --git a/src/components/ContactDetails.vue b/src/components/ContactDetails.vue index 0dd8ead8..364d6316 100644 --- a/src/components/ContactDetails.vue +++ b/src/components/ContactDetails.vue @@ -106,6 +106,16 @@ class="header-icon header-icon--pulse icon-history-force-white" @click="refreshContact" /> + <!-- repaired contact message --> + <div v-if="fixed" + v-tooltip="{ + content: t('contacts', 'This contact was broken and received a fix. Please review the content and click here to save it.'), + show: true, + trigger: 'manual', + }" + class="header-icon header-icon--pulse icon-up-force-white" + @click="updateContact" /> + <!-- menu actions --> <Actions class="header-menu" menu-align="right"> <ActionLink :href="contact.url" diff --git a/src/components/Properties/PropertyText.vue b/src/components/Properties/PropertyText.vue index 3089da96..2d300b6f 100644 --- a/src/components/Properties/PropertyText.vue +++ b/src/components/Properties/PropertyText.vue @@ -149,7 +149,7 @@ export default { } else if (this.propName === 'email') { return 'mailto:' // if no scheme (roughly checking for the colon char) - } else if (this.propType === 'uri' && this.value.indexOf(':') === -1) { + } else if (this.propType === 'uri' && this.localValue && this.localValue.indexOf(':') === -1) { return 'https://' } else if (this.propType === 'uri') { return '' // return empty, we already have a scheme in the value @@ -160,13 +160,13 @@ export default { // format external link externalHandler() { if (this.URLScheme !== false) { - return `${this.URLScheme}${this.value}` + return `${this.URLScheme}${this.localValue}` } return '' }, haveExtHandler() { - return this.externalHandler.trim() !== '' && this.value && this.value.length > 0 + return this.externalHandler.trim() !== '' && this.localValue && this.localValue.length > 0 } }, |