mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
feat: devices in subscription rows, set_devices action, table columns
- Remove "Days" column from main table (each subscription shows own) - Tariff column shows ALL subscription tariffs as comma-separated list - Subscription sub-rows show device count with phone icon - New bulk action "Изменить устройства" (set_devices) with input 1-50 - Update UserListItemSubscription type with device_limit field - i18n: setDevices + deviceLimit keys (ru + en)
This commit is contained in:
@@ -10,7 +10,8 @@ export type BulkActionType =
|
||||
| 'add_traffic'
|
||||
| 'add_balance'
|
||||
| 'assign_promo_group'
|
||||
| 'grant_subscription';
|
||||
| 'grant_subscription'
|
||||
| 'set_devices';
|
||||
|
||||
export interface BulkActionRequest {
|
||||
action: BulkActionType;
|
||||
@@ -27,6 +28,7 @@ export interface BulkActionParams {
|
||||
amount_kopeks?: number;
|
||||
balance_description?: string;
|
||||
promo_group_id?: number | null;
|
||||
device_limit?: number;
|
||||
}
|
||||
|
||||
export interface BulkActionErrorItem {
|
||||
|
||||
@@ -42,6 +42,7 @@ export interface UserListItemSubscription {
|
||||
days_remaining: number;
|
||||
traffic_used_gb: number;
|
||||
traffic_limit_gb: number;
|
||||
device_limit: number;
|
||||
}
|
||||
|
||||
export interface UserListItem {
|
||||
|
||||
Reference in New Issue
Block a user