mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
fix: import resource imporements
This commit is contained in:
@@ -6,13 +6,11 @@ import { RESOURCES_TYPES } from '@/constants/resourcesTypes';
|
||||
const SUBSCRIPTION_TYPE = {
|
||||
MAIN: 'main',
|
||||
};
|
||||
// const BASE_URL = '/dashboard';
|
||||
|
||||
export const getDashboardRoutes = () => [
|
||||
// Accounts.
|
||||
{
|
||||
path: '/accounts/import',
|
||||
component: lazy(() => import('@/containers/Import/ImportPage')),
|
||||
component: lazy(() => import('@/containers/Accounts/AccountsImport')),
|
||||
breadcrumb: 'Accounts Import',
|
||||
pageTitle: 'Accounts Import',
|
||||
},
|
||||
@@ -77,6 +75,7 @@ export const getDashboardRoutes = () => [
|
||||
},
|
||||
|
||||
// Items.
|
||||
|
||||
{
|
||||
path: `/items/:id/edit`,
|
||||
component: lazy(() => import('@/containers/Items/ItemFormPage')),
|
||||
@@ -512,8 +511,20 @@ export const getDashboardRoutes = () => [
|
||||
hotkey: 'shift+x',
|
||||
subscriptionActive: [SUBSCRIPTION_TYPE.MAIN],
|
||||
},
|
||||
|
||||
// Customers
|
||||
{
|
||||
path: `/customers/import`,
|
||||
component: lazy(
|
||||
() =>
|
||||
import(
|
||||
'@/containers/Customers/CustomersImport'
|
||||
),
|
||||
),
|
||||
backLink: true,
|
||||
pageTitle: 'Customers Import',
|
||||
subscriptionActive: [SUBSCRIPTION_TYPE.MAIN],
|
||||
defaultSearchResource: RESOURCES_TYPES.CUSTOMER,
|
||||
},
|
||||
{
|
||||
path: `/customers/:id/edit`,
|
||||
component: lazy(
|
||||
@@ -564,6 +575,16 @@ export const getDashboardRoutes = () => [
|
||||
},
|
||||
|
||||
// Vendors
|
||||
{
|
||||
path: `/vendors/import`,
|
||||
component: lazy(
|
||||
() => import('@/containers/Vendors/VendorsImport'),
|
||||
),
|
||||
backLink: true,
|
||||
pageTitle: 'Vendors Import',
|
||||
subscriptionActive: [SUBSCRIPTION_TYPE.MAIN],
|
||||
defaultSearchResource: RESOURCES_TYPES.VENDOR,
|
||||
},
|
||||
{
|
||||
path: `/vendors/:id/edit`,
|
||||
component: lazy(
|
||||
@@ -1031,6 +1052,19 @@ export const getDashboardRoutes = () => [
|
||||
subscriptionActive: [SUBSCRIPTION_TYPE.MAIN],
|
||||
defaultSearchResource: RESOURCES_TYPES.ACCOUNT,
|
||||
},
|
||||
{
|
||||
path: `/cashflow-accounts/:id/import`,
|
||||
component: lazy(
|
||||
() =>
|
||||
import(
|
||||
'@/containers/CashFlow/ImportIUncategorizedTransactions/ImportUncategorizedTransactionsPage'
|
||||
),
|
||||
),
|
||||
backLink: true,
|
||||
pageTitle: 'Bank Transactions Import',
|
||||
subscriptionActive: [SUBSCRIPTION_TYPE.MAIN],
|
||||
defaultSearchResource: RESOURCES_TYPES.ACCOUNT,
|
||||
},
|
||||
{
|
||||
path: `/cashflow-accounts`,
|
||||
component: lazy(
|
||||
|
||||
Reference in New Issue
Block a user