diff --git a/client/src/common/errors.js b/client/src/common/errors.js index 14f501a90..5b50b487a 100644 --- a/client/src/common/errors.js +++ b/client/src/common/errors.js @@ -13,4 +13,5 @@ export const ERROR = { // Bills BILL_NUMBER_EXISTS: 'BILL.NUMBER.EXISTS', + SALE_INVOICE_NO_IS_REQUIRED: 'SALE_INVOICE_NO_IS_REQUIRED' }; diff --git a/client/src/common/quickNewOptions.js b/client/src/common/quickNewOptions.js index afcec73ef..88b474dad 100644 --- a/client/src/common/quickNewOptions.js +++ b/client/src/common/quickNewOptions.js @@ -1,8 +1,8 @@ export default [ - { path: 'invoices/new', name: 'Sale invoice', label: 'Ctrl+Shift+I' }, - { path: 'bill//new', name: 'Purchase invoice',label:'Ctrl+Shift+B' }, - { path: 'make-journal-entry', name: 'Manual journal', label: 'Ctrl+Shift+M' }, - { path: 'expenses/new', name: 'Expense', label: 'Ctrl+Shift+X' }, - { path: 'customers/new', name: 'Customer', label: 'Ctrl+Shift+C' }, - { path: 'vendors/new', name: 'Vendor', label: 'Ctrl+Shift+V' }, + { path: 'invoices/new', name: 'Sale invoice' }, + { path: 'bill//new', name: 'Purchase invoice' }, + { path: 'make-journal-entry', name: 'Manual journal' }, + { path: 'expenses/new', name: 'Expense' }, + { path: 'customers/new', name: 'Customer' }, + { path: 'vendors/new', name: 'Vendor' }, ]; diff --git a/client/src/components/Authentication.js b/client/src/components/Authentication.js index aac1b8c83..357486e8f 100644 --- a/client/src/components/Authentication.js +++ b/client/src/components/Authentication.js @@ -14,7 +14,7 @@ function PageFade(props) { } export default function AuthenticationWrapper({ ...rest }) { - const to = { pathname: '/homepage' }; + const to = { pathname: '/' }; const location = useLocation(); const isAuthenticated = useIsAuthenticated(); const locationKey = location.pathname; diff --git a/client/src/components/Dashboard/DashboardTopbar.js b/client/src/components/Dashboard/DashboardTopbar.js index 24eb0396f..f29a3509c 100644 --- a/client/src/components/Dashboard/DashboardTopbar.js +++ b/client/src/components/Dashboard/DashboardTopbar.js @@ -24,6 +24,9 @@ import withSettings from 'containers/Settings/withSettings'; import QuickNewDropdown from 'containers/QuickNewDropdown/QuickNewDropdown'; import { compose } from 'utils'; +/** + * Dashboard topbar. + */ function DashboardTopbar({ // #withDashboard pageTitle, @@ -116,11 +119,7 @@ function DashboardTopbar({
- - {/*