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:
parent
d3527ef50b
commit
84ddc30f2b
@ -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'
|
||||
|
@ -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 });
|
||||
|
Loading…
Reference in New Issue
Block a user