mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
feat: bulk delete subscription protection for active paid subs
Add force_delete_active_paid guard to prevent accidental deletion of active paid subscriptions. Shows warning with count and requires explicit checkbox confirmation. Also fixes allVisibleSubscriptionIds to use filteredUsers and getFilteredSubs to respect trialOnly filter on subscription sub-rows.
This commit is contained in:
@@ -32,6 +32,7 @@ export interface BulkActionParams {
|
||||
promo_group_id?: number | null;
|
||||
device_limit?: number;
|
||||
delete_from_panel?: boolean;
|
||||
force_delete_active_paid?: boolean;
|
||||
}
|
||||
|
||||
export interface BulkActionErrorItem {
|
||||
|
||||
@@ -38,6 +38,7 @@ export interface UserListItemSubscription {
|
||||
tariff_id: number | null;
|
||||
tariff_name: string | null;
|
||||
status: string;
|
||||
is_trial: boolean;
|
||||
end_date: string | null;
|
||||
days_remaining: number;
|
||||
traffic_used_gb: number;
|
||||
|
||||
Reference in New Issue
Block a user