Fix WooCommerce sync button: AJAX handler registration and icon alignment

- Register ProductSync AJAX handler independently from full integration init
- AJAX now available on settings page even when integration is not yet enabled
- Improved icon vertical alignment with explicit margin-top adjustment
- Added better error handling and console logging in JS

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-04 10:22:14 +01:00
parent c92be303e8
commit 23f073339a
4 changed files with 49 additions and 8 deletions

View File

@@ -2103,16 +2103,20 @@
WooCommerce Sync Button
============================================ */
.bnb-sync-rooms-btn {
display: inline-flex;
align-items: center;
display: inline-flex !important;
align-items: center !important;
gap: 6px;
vertical-align: middle;
}
.bnb-sync-rooms-btn .dashicons {
font-size: 16px;
width: 16px;
height: 16px;
line-height: 1;
line-height: 16px;
display: inline-block;
vertical-align: middle;
margin-top: -2px;
}
.bnb-sync-rooms-btn .dashicons.bnb-spin {