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:
Sivin Varghese
2022-07-26 11:39:53 +05:30
committed by GitHub
parent 2082409657
commit 92bb84127b
11 changed files with 310 additions and 14 deletions

View File

@@ -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 '';
},
},