2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 03:29:00 +00:00

Add Tree route and Chart of Accounts to sidebar

This commit is contained in:
Faris Ansari 2018-10-23 22:58:26 +05:30
parent d3527ef50b
commit 84ddc30f2b
2 changed files with 15 additions and 3 deletions

View File

@ -24,8 +24,8 @@ export default {
dbFileName: '',
items: [
{
label: 'Invoices',
route: '/list/Invoice'
label: 'Chart of Accounts',
route: '/tree/Account'
},
{
label: 'Customers',
@ -35,6 +35,10 @@ export default {
label: 'Items',
route: '/list/Item'
},
{
label: 'Invoices',
route: '/list/Invoice'
},
{
label: 'Reports',
route: '/reportList'

View File

@ -14,6 +14,8 @@ import Settings from '../pages/Settings/Settings';
import ReportList from '../pages/Report';
import Tree from 'frappejs/ui/components/Tree';
Vue.use(Router);
const routes = [
@ -62,7 +64,13 @@ const routes = [
path: '/reportList',
name: 'Report',
component: ReportList
}
},
{
path: '/tree/:doctype',
name: 'Tree',
component: Tree,
props: true
},
];
export default new Router({ routes });