review changes
This commit is contained in:
parent
812c84e2b1
commit
f328489068
2 changed files with 6 additions and 5 deletions
|
@ -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);
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue