mirror of
https://github.com/inventree/InvenTree.git
synced 2025-10-18 15:12:23 +00:00
Dashboard item fix (#10596)
* Fix for "subscribed categories" dashboard item * Tweak filter display * Tweak filter for "Subscribed Parts"
This commit is contained in:
@@ -24,14 +24,17 @@ export function BuiltinQueryCountWidgets(): DashboardWidgetProps[] {
|
||||
title: t`Subscribed Parts`,
|
||||
description: t`Show the number of parts which you have subscribed to`,
|
||||
modelType: ModelType.part,
|
||||
params: { starred: true }
|
||||
params: { starred: true, active: true }
|
||||
}),
|
||||
QueryCountDashboardWidget({
|
||||
label: 'sub-cat',
|
||||
title: t`Subscribed Categories`,
|
||||
description: t`Show the number of part categories which you have subscribed to`,
|
||||
modelType: ModelType.partcategory,
|
||||
params: { starred: true }
|
||||
params: {
|
||||
starred: true,
|
||||
top_level: 'none'
|
||||
}
|
||||
}),
|
||||
QueryCountDashboardWidget({
|
||||
label: 'invalid-bom',
|
||||
|
@@ -250,7 +250,10 @@ export default function InvenTreeTableHeader({
|
||||
<HoverCard
|
||||
position='bottom-end'
|
||||
withinPortal={true}
|
||||
disabled={!tableState.filterSet.activeFilters?.length}
|
||||
disabled={
|
||||
hasCustomFilters ||
|
||||
!tableState.filterSet.activeFilters?.length
|
||||
}
|
||||
>
|
||||
<HoverCard.Target>
|
||||
<Tooltip
|
||||
|
Reference in New Issue
Block a user