feat(agents, i18n): enhance agent management and settlement features with new translations and UI updates
Added new translations for agent management and settlement features in English, Nepali, and Chinese, improving multi-language support. Updated the agents console to reflect changes in funding modes and player details, enhancing user experience. Refactored the admin permission gate to include new logic for handling bound line agents, ensuring better permission management. Additionally, streamlined the UI for agent-related pages and improved navigation to the settlement center, consolidating related functionalities for better accessibility.
This commit is contained in:
12
src/lib/platform-system-roles.ts
Normal file
12
src/lib/platform-system-roles.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { AdminRoleRow } from "@/types/api/index";
|
||||
|
||||
export const PLATFORM_SUPER_ADMIN_SLUG = "super_admin";
|
||||
export const PLATFORM_AGENT_SLUG = "agent";
|
||||
|
||||
export function isPlatformFixedRole(role: Pick<AdminRoleRow, "slug">): boolean {
|
||||
return role.slug === PLATFORM_SUPER_ADMIN_SLUG || role.slug === PLATFORM_AGENT_SLUG;
|
||||
}
|
||||
|
||||
export function isPlatformSuperAdminRole(role: Pick<AdminRoleRow, "slug">): boolean {
|
||||
return role.slug === PLATFORM_SUPER_ADMIN_SLUG;
|
||||
}
|
||||
Reference in New Issue
Block a user