Files
boursecu_user/src/views/base/home/layouts/configs/boursecuQuickActions.ts
T

48 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-10-22 10:36:43 +03:30
import { openCopperConvert } from '@/composables/useCopperConvertModal'
2026-06-16 17:01:35 +03:30
import { getBoursecuActionIconSrc } from '@/utils/config'
import type { HomeQuickActionItem } from '../types'
export const boursecuQuickActions: HomeQuickActionItem[] = [
{
id: 'buySell',
label: 'خرید و فروش',
icon: 'vuesax-linear:money-receive',
2026-06-16 17:01:35 +03:30
iconSrc: getBoursecuActionIconSrc('buySell'),
route: { name: 'buyProduct' },
},
{
id: 'wallet',
label: 'واریز و برداشت',
icon: 'vuesax-linear:wallet-1',
2026-06-16 17:01:35 +03:30
iconSrc: getBoursecuActionIconSrc('wallet'),
route: { name: 'wallet' },
},
{
id: 'assets',
label: 'دارایی ها',
icon: 'vuesax-linear:cup',
2026-06-16 17:01:35 +03:30
iconSrc: getBoursecuActionIconSrc('assets'),
2026-09-12 10:11:32 +03:30
// شیت موجودی‌ها — نه مسیر fund (با enable_product_funds=false گارد بی‌صدا برمی‌گرداند)
},
{
id: 'transactions',
label: 'تراکنش ها',
icon: 'vuesax-linear:receipt-item',
2026-06-16 17:01:35 +03:30
iconSrc: getBoursecuActionIconSrc('transactions'),
route: { name: 'transactions' },
},
{
id: 'physicalReceive',
label: 'تحویل فیزیکی',
icon: 'vuesax-linear:direct-inbox',
2026-06-16 17:01:35 +03:30
iconSrc: getBoursecuActionIconSrc('physicalReceive'),
route: { name: 'physicalReceive' },
},
{
id: 'convert',
label: 'تبدیل',
icon: 'vuesax-linear:refresh-circle',
2026-06-16 17:01:35 +03:30
iconSrc: getBoursecuActionIconSrc('convert'),
2026-10-22 10:36:43 +03:30
handler: () => openCopperConvert(),
},
2026-06-16 17:01:35 +03:30
]