review changes

This commit is contained in:
fayazara 2022-12-19 13:51:11 +05:30
parent 812c84e2b1
commit f328489068
2 changed files with 6 additions and 5 deletions

View file

@ -49,7 +49,6 @@ export default {
top: 0; top: 0;
padding: var(--space-small); padding: var(--space-small);
background-color: var(--s-25); background-color: var(--s-25);
z-index: 50;
border-bottom-width: 1px; border-bottom-width: 1px;
border-top-width: 1px; border-top-width: 1px;
border-color: var(--s-100); border-color: var(--s-100);

View file

@ -95,15 +95,17 @@ export default {
filterMessages() { filterMessages() {
return this.selectedTab === 'messages' || this.selectedTab === 'all'; return this.selectedTab === 'messages' || this.selectedTab === 'all';
}, },
totalSearchResultsCount() {
return (
this.contacts.length + this.conversations.length + this.messages.length
);
},
tabs() { tabs() {
return [ return [
{ {
key: 'all', key: 'all',
name: this.$t('SEARCH.TABS.ALL'), name: this.$t('SEARCH.TABS.ALL'),
count: count: this.totalSearchResultsCount,
this.contacts.length +
this.conversations.length +
this.messages.length,
}, },
{ {
key: 'contacts', key: 'contacts',