| @@ -5,8 +5,9 @@ | ||
| 5 | 5 | use FluentSupport\App\App; |
| 6 | 6 | use FluentSupport\App\Modules\PermissionManager; |
| 7 | 7 | use FluentSupport\App\Services\Tickets\TicketStats; |
| 8 | 8 | use FluentSupport\App\Services\Helper; |
| 9 | +use FluentSupport\App\Vite; | |
| 9 | 10 | |
| 10 | 11 | class AdminBarHandler |
| 11 | 12 | { |
| 12 | 13 | public function init() |
| @@ -24,11 +25,9 @@ | ||
| 24 | 25 | } |
| 25 | 26 | |
| 26 | 27 | public function showTicketSummary($adminBar) |
| 27 | 28 | { |
| 28 | - $assets = App::getInstance('url.assets'); | |
| 29 | - | |
| 30 | - wp_enqueue_script('fst_global_summary', $assets . 'admin/js/global_summary.js', ['jquery'], FLUENT_SUPPORT_VERSION); | |
| 29 | + wp_enqueue_script('fst_global_summary', Vite::getEnqueuePath('admin/js/global_summary.js'), ['jquery'], FLUENT_SUPPORT_VERSION); | |
| 31 | 30 | |
| 32 | 31 | wp_localize_script('fst_global_summary', 'fst_bar_vars', [ |
| 33 | 32 | 'rest' => $this->getRestInfo(), |
| 34 | 33 | 'links' => (new TicketStats())->getQuickLinks(), |