fix: show Products tab without vendor filter

Remove x-if="selectedVendor" condition from Products tab button and panel
so products are visible when no vendor is selected.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-25 00:12:55 +01:00
parent 5a7098c137
commit 0aef7d5d81

View File

@@ -122,9 +122,7 @@
<!-- Tabs --> <!-- Tabs -->
{% call tabs_nav(tab_var='activeTab') %} {% call tabs_nav(tab_var='activeTab') %}
<template x-if="selectedVendor"> {{ tab_button('products', 'Products', tab_var='activeTab', icon='cube') }}
<span>{{ tab_button('products', 'Products', tab_var='activeTab', icon='cube') }}</span>
</template>
{{ tab_button('orders', 'Orders', tab_var='activeTab', icon='shopping-cart', count_var='orderStats.pending') }} {{ tab_button('orders', 'Orders', tab_var='activeTab', icon='shopping-cart', count_var='orderStats.pending') }}
{{ tab_button('exceptions', 'Exceptions', tab_var='activeTab', icon='exclamation-circle', count_var='exceptionStats.pending') }} {{ tab_button('exceptions', 'Exceptions', tab_var='activeTab', icon='exclamation-circle', count_var='exceptionStats.pending') }}
<template x-if="selectedVendor"> <template x-if="selectedVendor">
@@ -135,12 +133,10 @@
</template> </template>
{% endcall %} {% endcall %}
<!-- Products Tab (Import + Export) - Vendor only --> <!-- Products Tab -->
<template x-if="selectedVendor"> {{ tab_panel('products', tab_var='activeTab') }}
{{ tab_panel('products', tab_var='activeTab') }} {% include 'admin/partials/letzshop-products-tab.html' %}
{% include 'admin/partials/letzshop-products-tab.html' %} {{ endtab_panel() }}
{{ endtab_panel() }}
</template>
<!-- Orders Tab --> <!-- Orders Tab -->
{{ tab_panel('orders', tab_var='activeTab') }} {{ tab_panel('orders', tab_var='activeTab') }}