From f32848906849368b190bd4dc0f305eddb494647a Mon Sep 17 00:00:00 2001 From: fayazara Date: Mon, 19 Dec 2022 13:51:11 +0530 Subject: [PATCH] review changes --- .../search/components/SearchResultSection.vue | 1 - .../routes/dashboard/search/components/SearchView.vue | 10 ++++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/javascript/dashboard/routes/dashboard/search/components/SearchResultSection.vue b/app/javascript/dashboard/routes/dashboard/search/components/SearchResultSection.vue index 27770e82e..ae1c73576 100644 --- a/app/javascript/dashboard/routes/dashboard/search/components/SearchResultSection.vue +++ b/app/javascript/dashboard/routes/dashboard/search/components/SearchResultSection.vue @@ -49,7 +49,6 @@ export default { top: 0; padding: var(--space-small); background-color: var(--s-25); - z-index: 50; border-bottom-width: 1px; border-top-width: 1px; border-color: var(--s-100); diff --git a/app/javascript/dashboard/routes/dashboard/search/components/SearchView.vue b/app/javascript/dashboard/routes/dashboard/search/components/SearchView.vue index 6b339e034..5a0d34011 100644 --- a/app/javascript/dashboard/routes/dashboard/search/components/SearchView.vue +++ b/app/javascript/dashboard/routes/dashboard/search/components/SearchView.vue @@ -95,15 +95,17 @@ export default { filterMessages() { return this.selectedTab === 'messages' || this.selectedTab === 'all'; }, + totalSearchResultsCount() { + return ( + this.contacts.length + this.conversations.length + this.messages.length + ); + }, tabs() { return [ { key: 'all', name: this.$t('SEARCH.TABS.ALL'), - count: - this.contacts.length + - this.conversations.length + - this.messages.length, + count: this.totalSearchResultsCount, }, { key: 'contacts',