diff --git a/app/javascript/dashboard/components/layout/Sidebar.vue b/app/javascript/dashboard/components/layout/Sidebar.vue index 509c34696..79bef628a 100644 --- a/app/javascript/dashboard/components/layout/Sidebar.vue +++ b/app/javascript/dashboard/components/layout/Sidebar.vue @@ -144,6 +144,7 @@ export default { cssClass: 'menu-title align-justify', toState: frontendURL(`accounts/${this.accountId}/settings/inboxes`), toStateName: 'settings_inbox_list', + newLinkRouteName: 'settings_inbox_new', children: this.inboxes.map(inbox => ({ id: inbox.id, label: inbox.name, @@ -158,10 +159,13 @@ export default { icon: 'ion-pound', label: 'LABELS', hasSubMenu: true, + newLink: true, key: 'label', cssClass: 'menu-title align-justify', toState: frontendURL(`accounts/${this.accountId}/settings/labels`), toStateName: 'labels_list', + showModalForNewItem: true, + modalName: 'AddLabel', children: this.accountLabels.map(label => ({ id: label.id, label: label.title, @@ -178,10 +182,12 @@ export default { icon: 'ion-ios-people', label: 'TEAMS', hasSubMenu: true, + newLink: true, key: 'team', cssClass: 'menu-title align-justify teams-sidebar-menu', toState: frontendURL(`accounts/${this.accountId}/settings/teams`), toStateName: 'teams_list', + newLinkRouteName: 'settings_teams_new', children: this.teams.map(team => ({ id: team.id, label: team.name, diff --git a/app/javascript/dashboard/components/layout/SidebarItem.vue b/app/javascript/dashboard/components/layout/SidebarItem.vue index f00753497..810155bef 100644 --- a/app/javascript/dashboard/components/layout/SidebarItem.vue +++ b/app/javascript/dashboard/components/layout/SidebarItem.vue @@ -19,7 +19,7 @@
+