feat: add product management features and integrate role selection
- Added PRODUCTS_ROUTES to app routing. - Removed roles.const.ts and related references to central-auth-roles. - Updated login component to remove role selection logic. - Integrated ToastService for success notifications in customer, inventory, product brand, product category, supplier, and user forms. - Implemented product and category selection fields in product form. - Created reusable select components for product brands and categories. - Enhanced user form with password validation and role selection. - Established roles service for fetching roles from the API.
This commit is contained in:
@@ -2,6 +2,7 @@ import { CUSTOMERS_ROUTES } from '@/modules/customers/constants';
|
||||
import { INVENTORIES_ROUTES } from '@/modules/inventories/constants';
|
||||
import { PRODUCT_BRANDS_ROUTES } from '@/modules/productBrands/constants';
|
||||
import { PRODUCT_CATEGORIES_ROUTES } from '@/modules/productCategories/constants';
|
||||
import { PRODUCTS_ROUTES } from '@/modules/products/constants';
|
||||
import { STORES_ROUTES } from '@/modules/stores/constants';
|
||||
import { SUPPLIERS_ROUTES } from '@/modules/suppliers/constants';
|
||||
import { USERS_ROUTES } from '@/modules/users/constants';
|
||||
@@ -24,6 +25,7 @@ export const appRoutes: Routes = [
|
||||
...PRODUCT_CATEGORIES_ROUTES,
|
||||
...CUSTOMERS_ROUTES,
|
||||
...INVENTORIES_ROUTES,
|
||||
...PRODUCTS_ROUTES,
|
||||
{ path: 'uikit', loadChildren: () => import('./app/pages/uikit/uikit.routes') },
|
||||
{ path: 'documentation', component: Documentation },
|
||||
{ path: 'pages', loadChildren: () => import('./app/pages/pages.routes') },
|
||||
|
||||
Reference in New Issue
Block a user