enhancement: Custom views (#3838)
* enhancement: Custom views * Review fixes
This commit is contained in:
parent
5710b7559e
commit
cd6c9a8fe9
14 changed files with 251 additions and 169 deletions
|
@ -5,7 +5,7 @@ const contacts = accountId => ({
|
|||
routes: [
|
||||
'contacts_dashboard',
|
||||
'contact_profile_dashboard',
|
||||
'contacts_through_custom_view',
|
||||
'contacts_segments_dashboard',
|
||||
'contacts_labels_dashboard',
|
||||
],
|
||||
menuItems: [
|
||||
|
|
|
@ -14,8 +14,8 @@ const conversations = accountId => ({
|
|||
'conversations_through_team',
|
||||
'conversation_mentions',
|
||||
'conversation_through_mentions',
|
||||
'custom_view_conversations',
|
||||
'conversations_through_custom_view',
|
||||
'folder_conversations',
|
||||
'conversations_through_folders',
|
||||
],
|
||||
menuItems: [
|
||||
{
|
||||
|
|
|
@ -157,7 +157,7 @@ export default {
|
|||
})),
|
||||
};
|
||||
},
|
||||
customViewsSection() {
|
||||
foldersSection() {
|
||||
return {
|
||||
icon: 'folder',
|
||||
label: 'CUSTOM_VIEWS_FOLDER',
|
||||
|
@ -175,7 +175,7 @@ export default {
|
|||
})),
|
||||
};
|
||||
},
|
||||
contactCustomViewsSection() {
|
||||
contactSegmentsSection() {
|
||||
return {
|
||||
icon: 'folder',
|
||||
label: 'CUSTOM_VIEWS_SEGMENTS',
|
||||
|
@ -200,16 +200,10 @@ export default {
|
|||
conversationMenuItems = [this.teamSection, ...conversationMenuItems];
|
||||
}
|
||||
if (this.customViews.length) {
|
||||
conversationMenuItems = [
|
||||
this.customViewsSection,
|
||||
...conversationMenuItems,
|
||||
];
|
||||
conversationMenuItems = [this.foldersSection, ...conversationMenuItems];
|
||||
}
|
||||
if (this.contactCustomViews.length) {
|
||||
contactMenuItems = [
|
||||
this.contactCustomViewsSection,
|
||||
...contactMenuItems,
|
||||
];
|
||||
contactMenuItems = [this.contactSegmentsSection, ...contactMenuItems];
|
||||
}
|
||||
return {
|
||||
conversations: conversationMenuItems,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue