mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
feat: add show_in_gift toggle UI for tariffs in admin panel
Add pill toggle in tariff create/edit form and purple gift badge in tariff list. Includes i18n for ru, en, zh, fa locales.
This commit is contained in:
@@ -32,6 +32,7 @@ export interface TariffListItem {
|
||||
description: string | null;
|
||||
is_active: boolean;
|
||||
is_trial_available: boolean;
|
||||
show_in_gift: boolean;
|
||||
is_daily: boolean;
|
||||
daily_price_kopeks: number;
|
||||
traffic_limit_gb: number;
|
||||
@@ -54,6 +55,7 @@ export interface TariffDetail {
|
||||
description: string | null;
|
||||
is_active: boolean;
|
||||
is_trial_available: boolean;
|
||||
show_in_gift: boolean;
|
||||
traffic_limit_gb: number;
|
||||
device_limit: number;
|
||||
device_price_kopeks: number | null;
|
||||
@@ -95,6 +97,7 @@ export interface TariffCreateRequest {
|
||||
name: string;
|
||||
description?: string;
|
||||
is_active?: boolean;
|
||||
show_in_gift?: boolean;
|
||||
traffic_limit_gb?: number;
|
||||
device_limit?: number;
|
||||
device_price_kopeks?: number;
|
||||
@@ -137,6 +140,7 @@ export interface TariffUpdateRequest {
|
||||
name?: string;
|
||||
description?: string;
|
||||
is_active?: boolean;
|
||||
show_in_gift?: boolean;
|
||||
traffic_limit_gb?: number;
|
||||
device_limit?: number;
|
||||
device_price_kopeks?: number;
|
||||
|
||||
Reference in New Issue
Block a user