2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +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: '', dbFileName: '',
items: [ items: [
{ {
label: 'Invoices', label: 'Chart of Accounts',
route: '/list/Invoice' route: '/tree/Account'
}, },
{ {
label: 'Customers', label: 'Customers',
@ -35,6 +35,10 @@ export default {
label: 'Items', label: 'Items',
route: '/list/Item' route: '/list/Item'
}, },
{
label: 'Invoices',
route: '/list/Invoice'
},
{ {
label: 'Reports', label: 'Reports',
route: '/reportList' route: '/reportList'

View File

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