diff options
Diffstat (limited to 'app/assets/javascripts/crm/contacts/components/contacts_root.vue')
-rw-r--r-- | app/assets/javascripts/crm/contacts/components/contacts_root.vue | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/app/assets/javascripts/crm/contacts/components/contacts_root.vue b/app/assets/javascripts/crm/contacts/components/contacts_root.vue index 562363ff88e..2be17d1f80f 100644 --- a/app/assets/javascripts/crm/contacts/components/contacts_root.vue +++ b/app/assets/javascripts/crm/contacts/components/contacts_root.vue @@ -86,7 +86,7 @@ export default { }, methods: { errorAlertDismissed() { - this.error = true; + this.error = false; }, extractContacts(data) { const contacts = data?.group?.contacts?.nodes || []; @@ -146,7 +146,7 @@ export default { editButtonLabel: __('Edit'), title: s__('Crm|Customer relations contacts'), newContact: s__('Crm|New contact'), - errorText: __('Something went wrong. Please try again.'), + errorMsg: __('Something went wrong. Please try again.'), }, EDIT_ROUTE_NAME, NEW_ROUTE_NAME, @@ -176,7 +176,7 @@ export default { <div> <paginated-table-with-search-and-tabs :show-items="true" - :show-error-msg="false" + :show-error-msg="error" :i18n="$options.i18n" :items="contacts.list" :page-info="contacts.pageInfo" @@ -243,10 +243,7 @@ export default { </template> <template #empty> - <span v-if="error"> - {{ $options.i18n.errorText }} - </span> - <span v-else> + <span> {{ $options.i18n.emptyText }} </span> </template> |