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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user