Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove 'is_hidden' flag from tables and filter
michalba234a0f9543
diff --git a/saleor/dashboard/category/filters.py b/saleor/dashboard/category/filters.pyindex d116d2f5df..1f466e474d 100644--- a/saleor/dashboard/category/filters.py+++ b/saleor/dashboard/category/filters.py@@ -22,12 +22,6 @@ class CategoryFilter(SortedFilterSet):name = CharFilter(label=pgettext_lazy('Category list filter label', 'Name'),lookup_expr='icontains')- is_hidden = ChoiceFilter(- label=pgettext_lazy(- 'Category list filter label', 'Is hidden in site navigation'),- choices=IS_HIDDEN_CHOICES,- empty_label=pgettext_lazy('Filter empty choice label', 'All'),- widget=forms.Select)sort_by = OrderingFilter(label=pgettext_lazy('Category list sorting filter label', 'Sort by'),fields=SORT_BY_FIELDS.keys(),diff --git a/templates/dashboard/category/detail.html b/templates/dashboard/category/detail.htmlindex 2d43587847..eb4eb5283f 100644--- a/templates/dashboard/category/detail.html+++ b/templates/dashboard/category/detail.html@@ -147,13 +147,6 @@{% trans "Description" context "Category list table header description" %}</a></th>- {% get_sort_by_toggle 'is_hidden' as toggle %}- <th class="{% if toggle.is_active %}active{% endif %}">- <a href="{{ toggle.url }}">- <svg data-src="{{ toggle.sorting_icon }}" />- {% trans "Is hidden" context "Category list table header hidden" %}- </a>- </th><th></th></tr></thead>@@ -170,15 +163,6 @@ {% endif %}</td>- <td>- {% if node.is_hidden %}- <span>- {% trans 'Hidden' context 'Category list table is hidden flag' %}- </span>- {% else %}- -- {% endif %}- </td>{% if perms.product.edit_category %}<td class="right-align ignore-link"><a href="{% url 'dashboard:category-edit' root_pk=node.pk %}" class="btn btn-flat">diff --git a/templates/dashboard/category/list.html b/templates/dashboard/category/list.htmlindex dfcc2c2659..9ad7949103 100644--- a/templates/dashboard/category/list.html+++ b/templates/dashboard/category/list.html@@ -64,13 +64,7 @@{% trans "Description" context "Category list table header description" %}</a></th>- {% get_sort_by_toggle 'is_hidden' as toggle %}- <th class="{% if toggle.is_active %}active{% endif %}">- <a href="{{ toggle.url }}">- <svg data-src="{{ toggle.sorting_icon }}" />- {% trans "Is hidden" context "Category list table header hidden" %}- </a>- </th>+ </tr></thead><tbody>{% for node in categories %}@@ -85,15 +79,6 @@ {% endif %}</td>- <td>- {% if node.is_hidden %}- <span>- {% trans 'Hidden' context 'Category list table is hidden flag' %}- </span>- {% else %}- -- {% endif %}- </td></tr>{% endfor %}</tbody>