mirror of
https://github.com/inventree/InvenTree.git
synced 2025-11-13 19:36:46 +00:00
* Fix for "subscribed categories" dashboard item
* Tweak filter display
* Tweak filter for "Subscribed Parts"
(cherry picked from commit 485aa6324c)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
committed by
GitHub
parent
c471a1cd38
commit
cc508a544c
@@ -24,14 +24,17 @@ export function BuiltinQueryCountWidgets(): DashboardWidgetProps[] {
|
|||||||
title: t`Subscribed Parts`,
|
title: t`Subscribed Parts`,
|
||||||
description: t`Show the number of parts which you have subscribed to`,
|
description: t`Show the number of parts which you have subscribed to`,
|
||||||
modelType: ModelType.part,
|
modelType: ModelType.part,
|
||||||
params: { starred: true }
|
params: { starred: true, active: true }
|
||||||
}),
|
}),
|
||||||
QueryCountDashboardWidget({
|
QueryCountDashboardWidget({
|
||||||
label: 'sub-cat',
|
label: 'sub-cat',
|
||||||
title: t`Subscribed Categories`,
|
title: t`Subscribed Categories`,
|
||||||
description: t`Show the number of part categories which you have subscribed to`,
|
description: t`Show the number of part categories which you have subscribed to`,
|
||||||
modelType: ModelType.partcategory,
|
modelType: ModelType.partcategory,
|
||||||
params: { starred: true }
|
params: {
|
||||||
|
starred: true,
|
||||||
|
top_level: 'none'
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
QueryCountDashboardWidget({
|
QueryCountDashboardWidget({
|
||||||
label: 'invalid-bom',
|
label: 'invalid-bom',
|
||||||
|
|||||||
@@ -250,7 +250,10 @@ export default function InvenTreeTableHeader({
|
|||||||
<HoverCard
|
<HoverCard
|
||||||
position='bottom-end'
|
position='bottom-end'
|
||||||
withinPortal={true}
|
withinPortal={true}
|
||||||
disabled={!tableState.filterSet.activeFilters?.length}
|
disabled={
|
||||||
|
hasCustomFilters ||
|
||||||
|
!tableState.filterSet.activeFilters?.length
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<HoverCard.Target>
|
<HoverCard.Target>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
|
|||||||
Reference in New Issue
Block a user