products pagination

This commit is contained in:
Artyom Ashirov 2024-11-15 08:19:54 +03:00
parent df3149e59a
commit e1eda05afe
2 changed files with 602 additions and 508 deletions

File diff suppressed because it is too large Load Diff

View File

@ -269,6 +269,9 @@ bot.on('callback_query', async (callbackQuery) => {
} else if (action.startsWith('prod_subcategory_')) {
logDebug(action, 'handleSubcategorySelection');
await adminProductHandler.handleSubcategorySelection(callbackQuery);
} else if (action.startsWith('list_products_')) {
logDebug(action, 'handleSubcategorySelection');
await adminProductHandler.handleProductListPage(callbackQuery);
} else if (action.startsWith('add_product_')) {
logDebug(action, 'handleAddProduct');
await adminProductHandler.handleAddProduct(callbackQuery);