7fb9dd0267
fix: cache database username to avoid redundant API calls\n\n- Added cachedDbUsername variable to store username after first API call\n- Modified loadPricelistsDbUsername to check cache before making API request\n- Reduces unnecessary API calls when opening pricelists modal multiple times\n- Improves performance and reduces server load
Mikhail Chusavitin
2026-02-02 14:19:23 +03:00
ed1d6e642c
fix: cache database username to avoid redundant API calls\n\n- Added cachedDbUsername variable to store username after first API call\n- Modified loadPricelistsDbUsername to check cache before making API request\n- Reduces unnecessary API calls when opening pricelists modal multiple times\n- Improves performance and reduces server load
Mikhail Chusavitin
2026-02-02 14:19:23 +03:00
61646bea46
fix: hide pagination when pricelists loading fails\n\n- Added pagination hiding when pricelists load error occurs\n- Prevents display of empty pagination controls when there's an error\n- Maintains consistent UI behavior
Mikhail Chusavitin
2026-02-02 14:15:23 +03:00
2f0648f2d4
fix: hide pagination when pricelists loading fails\n\n- Added pagination hiding when pricelists load error occurs\n- Prevents display of empty pagination controls when there's an error\n- Maintains consistent UI behavior
Mikhail Chusavitin
2026-02-02 14:15:23 +03:00
9495f929aa
fix: add double-submit protection for pricelist creation\n\n- Added isCreatingPricelist flag to prevent duplicate submissions\n- Disable submit button during creation process\n- Show loading text during submission\n- Re-enable button and restore text in finally block\n- Prevents accidental creation of duplicate pricelists
Mikhail Chusavitin
2026-02-02 14:03:39 +03:00
1d5e358f80
fix: add double-submit protection for pricelist creation\n\n- Added isCreatingPricelist flag to prevent duplicate submissions\n- Disable submit button during creation process\n- Show loading text during submission\n- Re-enable button and restore text in finally block\n- Prevents accidental creation of duplicate pricelists
Mikhail Chusavitin
2026-02-02 14:03:39 +03:00
b80bde7dac
fix: add showToast fallback for robustness\n\n- Added fallback showToast function to prevent undefined errors\n- If showToast is not available from base.html, use simple alert fallback\n- Maintains same functionality while improving robustness\n- Addresses potential undefined showToast issue in pricelists functions
Mikhail Chusavitin
2026-02-02 13:50:32 +03:00
78fd25472f
fix: add showToast fallback for robustness\n\n- Added fallback showToast function to prevent undefined errors\n- If showToast is not available from base.html, use simple alert fallback\n- Maintains same functionality while improving robustness\n- Addresses potential undefined showToast issue in pricelists functions
Mikhail Chusavitin
2026-02-02 13:50:32 +03:00
e307a2765d
fix: rename global canWrite variable to avoid naming conflicts\n\n- Renamed global 'canWrite' variable to 'pricelistsCanWrite' to avoid potential conflicts\n- Updated all references to the renamed variable in pricelists functions\n- Maintains same functionality while improving code quality
Mikhail Chusavitin
2026-02-02 13:00:05 +03:00
2b5c81001a
fix: rename global canWrite variable to avoid naming conflicts\n\n- Renamed global 'canWrite' variable to 'pricelistsCanWrite' to avoid potential conflicts\n- Updated all references to the renamed variable in pricelists functions\n- Maintains same functionality while improving code quality
Mikhail Chusavitin
2026-02-02 13:00:05 +03:00
236e37376e
fix: properly hide main tab content when pricelists tab is active\n\n- Fixed tab switching logic to properly hide main tab-content when pricelists tab is selected\n- Ensures no 'Загрузка...' text appears in pricelists tab\n- Maintains proper tab visibility for all other tabs
Mikhail Chusavitin
2026-02-02 12:45:33 +03:00
d26a8c5604
fix: properly hide main tab content when pricelists tab is active\n\n- Fixed tab switching logic to properly hide main tab-content when pricelists tab is selected\n- Ensures no 'Загрузка...' text appears in pricelists tab\n- Maintains proper tab visibility for all other tabs
Mikhail Chusavitin
2026-02-02 12:45:33 +03:00
ded6e09b5e
feat: move pricelists to admin pricing tab\n\n- Removed separate 'Прайслисты' link from navigation\n- Added 4th tab 'Прайслисты' to admin_pricing.html\n- Moved pricelists table, create modal, and CRUD functionality to admin pricing\n- Updated /pricelists route to redirect to /admin/pricing?tab=pricelists\n\nFixes task 2: Прайслисты → вкладка в "Администратор цен"
Mikhail Chusavitin
2026-02-02 12:42:05 +03:00
087701fe99
feat: move pricelists to admin pricing tab\n\n- Removed separate 'Прайслисты' link from navigation\n- Added 4th tab 'Прайслисты' to admin_pricing.html\n- Moved pricelists table, create modal, and CRUD functionality to admin pricing\n- Updated /pricelists route to redirect to /admin/pricing?tab=pricelists\n\nFixes task 2: Прайслисты → вкладка в "Администратор цен"
Mikhail Chusavitin
2026-02-02 12:42:05 +03:00
96bbe0a510
fix: use originalHTML to restore button state after sync
Mikhail Chusavitin
2026-02-02 12:32:44 +03:00
5a9c5371ba
fix: use originalHTML to restore button state after sync
Mikhail Chusavitin
2026-02-02 12:32:44 +03:00