feat: Creates view for edit/new article page (#5061)
* feat: Creates view for edit/new article page * chore: Minor fixes * chore: Minor fixes * Update HelpCenterLayout.vue * chore: Minor fixes * chore: Review fixes Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com> Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
@@ -134,6 +134,12 @@ export default {
|
||||
this.menuItem.toStateName === 'settings_applications'
|
||||
);
|
||||
},
|
||||
isAllArticles() {
|
||||
return (
|
||||
this.$store.state.route.name === 'list_all_locale_articles' &&
|
||||
this.menuItem.toStateName === 'all_locale_articles'
|
||||
);
|
||||
},
|
||||
|
||||
computedClass() {
|
||||
// If active Inbox is present
|
||||
@@ -151,6 +157,12 @@ export default {
|
||||
}
|
||||
return ' ';
|
||||
}
|
||||
if (this.isHelpCenterSidebar) {
|
||||
if (this.isAllArticles) {
|
||||
return 'is-active';
|
||||
}
|
||||
return ' ';
|
||||
}
|
||||
return '';
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user