fix: Filters are not applied unless I'm on the All Conversations screen (#6006)
* fix: Filters are not applied unless I'm on the All Conversations screen * chore: Review fixes * chore: Minor sidebar fixes * chore: Review fixes Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
@@ -345,6 +345,9 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
pageTitle() {
|
pageTitle() {
|
||||||
|
if (this.hasAppliedFilters) {
|
||||||
|
return this.$t('CHAT_LIST.TAB_HEADING');
|
||||||
|
}
|
||||||
if (this.inbox.name) {
|
if (this.inbox.name) {
|
||||||
return this.inbox.name;
|
return this.inbox.name;
|
||||||
}
|
}
|
||||||
@@ -439,9 +442,6 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onApplyFilter(payload) {
|
onApplyFilter(payload) {
|
||||||
if (this.$route.name !== 'home') {
|
|
||||||
this.$router.push({ name: 'home' });
|
|
||||||
}
|
|
||||||
this.resetBulkActions();
|
this.resetBulkActions();
|
||||||
this.foldersQuery = filterQueryGenerator(payload);
|
this.foldersQuery = filterQueryGenerator(payload);
|
||||||
this.$store.dispatch('conversationPage/reset');
|
this.$store.dispatch('conversationPage/reset');
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ $label-badge-size: var(--space-slab);
|
|||||||
padding: var(--space-smaller) var(--space-smaller);
|
padding: var(--space-smaller) var(--space-smaller);
|
||||||
margin: var(--space-smaller) 0;
|
margin: var(--space-smaller) 0;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
line-height: 1.2;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: var(--s-25);
|
background: var(--s-25);
|
||||||
@@ -135,8 +136,6 @@ $label-badge-size: var(--space-slab);
|
|||||||
|
|
||||||
.menu-label {
|
.menu-label {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.inbox-icon {
|
.inbox-icon {
|
||||||
|
|||||||
Reference in New Issue
Block a user