mirror of
				https://github.com/i701/sarlink-portal.git
				synced 2025-10-31 16:07:00 +00:00 
			
		
		
		
	- Updated `package.json` to include the latest version of `@radix-ui/react-separator` and added `moment` for date handling. - Modified `blockDevice` function in `omada-actions.ts` to include a `blockedBy` parameter, allowing differentiation between admin and parent actions. - Refactored `payment.ts` to include expiry date handling for devices during payment processing. - Improved `DevicesTable` and `ClickableRow` components to support admin functionalities and enhance device interaction. - Updated `BlockDeviceDialog` to accept an `admin` prop, allowing for tailored blocking actions based on user role. - Enhanced UI components for better consistency and responsiveness across the dashboard. These changes improve the overall functionality and maintainability of the application, providing a better user experience in device management.
		
			
				
	
	
		
			6 lines
		
	
	
		
			165 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			165 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
| -- CreateEnum
 | |
| CREATE TYPE "Blocker" AS ENUM ('ADMIN', 'PARENT');
 | |
| 
 | |
| -- AlterTable
 | |
| ALTER TABLE "Device" ADD COLUMN     "blockedBy" "Blocker" NOT NULL DEFAULT 'PARENT';
 |