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:
@@ -1,3 +1,2 @@
|
||||
export * from './defaultData.const';
|
||||
export * from './menuItems.const';
|
||||
export * from './roles.const';
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
import { TRoles } from '../models';
|
||||
|
||||
export default {
|
||||
ADMIN: {
|
||||
title: 'مدیر سیستم',
|
||||
key: 'ADMIN',
|
||||
},
|
||||
SCHOOL: {
|
||||
title: 'مرکز آموزشی',
|
||||
key: 'SCHOOL',
|
||||
},
|
||||
TEACHER: {
|
||||
title: 'دبیر',
|
||||
key: 'TEACHER',
|
||||
},
|
||||
STUDENTS: {
|
||||
title: 'دانشآموز',
|
||||
key: 'STUDENTS',
|
||||
},
|
||||
} as Record<TRoles, { title: string; key: TRoles }>;
|
||||
Reference in New Issue
Block a user