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:
Fringg
2026-04-29 11:48:59 +03:00
parent ae55a18fc9
commit afffab17d3
5 changed files with 150 additions and 65 deletions

View File

@@ -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 {

View File

@@ -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;