diff --git a/src/model/appNotifications.ts b/src/model/appNotifications.ts index 9ac7bcb..cb7fe7a 100644 --- a/src/model/appNotifications.ts +++ b/src/model/appNotifications.ts @@ -6,6 +6,7 @@ export interface AppNotification { body: string severity: 'info' | 'success' | 'warning' | 'danger' is_active: boolean + is_system?: boolean created_by?: number | null created_at?: string updated_at?: string @@ -18,6 +19,17 @@ export interface AppNotification { customer_ids?: number[] } +export type AppNotificationSourceFilter = 'all' | 'admin' | 'system' + +export const APP_NOTIFICATION_SOURCE_TABS: Array<{ + value: AppNotificationSourceFilter + label: string +}> = [ + { value: 'all', label: 'همه' }, + { value: 'admin', label: 'اعلان ادمین' }, + { value: 'system', label: 'سیستمی' }, +] + export const APP_NOTIFICATION_SEVERITIES = [ { value: 'info', label: 'اطلاعات (info)' }, { value: 'success', label: 'موفق (success)' }, diff --git a/src/pages/menuPages/appNotifications/components/table.vue b/src/pages/menuPages/appNotifications/components/table.vue index 29dae4b..918d570 100644 --- a/src/pages/menuPages/appNotifications/components/table.vue +++ b/src/pages/menuPages/appNotifications/components/table.vue @@ -2,9 +2,23 @@