2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 23:51:08 +00:00

Add ability to filter by 'starred' status

This commit is contained in:
Oliver Walters
2020-04-13 21:24:36 +10:00
parent c76c93237e
commit b850beb687
3 changed files with 46 additions and 26 deletions

View File

@@ -200,11 +200,11 @@
{% if category %}
$("#cat-edit").click(function () {
launchModalForm(
"{% url 'category-edit' category.id %}",
{
reload: true
},
);
"{% url 'category-edit' category.id %}",
{
reload: true
},
);
return false;
});
@@ -227,9 +227,9 @@
"#part-table",
"{% url 'api-part-list' %}",
{
query: {
{% if category %}
category: {{ category.id }},
params: {
{% if category %}category: {{ category.id }},
{% else %}category: "null",
{% endif %}
},
buttons: ['#part-options'],