mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 19:46:46 +00:00
[PUI] Placeholder panels (#7850)
* Remove unused import * Add "homepage" settings for user Note: These will be replaced with "dashboard" settings in the future
This commit is contained in:
parent
42183a3a3f
commit
7a97ecfc3d
@ -136,6 +136,10 @@ export function SettingList({
|
|||||||
(s: any) => s.key === key
|
(s: any) => s.key === key
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (settingsState?.settings && !setting) {
|
||||||
|
console.error(`Setting ${key} not found`);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<React.Fragment key={key}>
|
<React.Fragment key={key}>
|
||||||
{setting ? (
|
{setting ? (
|
||||||
|
@ -11,7 +11,6 @@ import {
|
|||||||
} from '@tabler/icons-react';
|
} from '@tabler/icons-react';
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
|
|
||||||
import { PlaceholderPanel } from '../../../components/items/Placeholder';
|
|
||||||
import { PanelGroup, PanelType } from '../../../components/nav/PanelGroup';
|
import { PanelGroup, PanelType } from '../../../components/nav/PanelGroup';
|
||||||
import { SettingsHeader } from '../../../components/nav/SettingsHeader';
|
import { SettingsHeader } from '../../../components/nav/SettingsHeader';
|
||||||
import { UserSettingList } from '../../../components/settings/SettingList';
|
import { UserSettingList } from '../../../components/settings/SettingList';
|
||||||
@ -46,7 +45,33 @@ export default function UserSettings() {
|
|||||||
name: 'dashboard',
|
name: 'dashboard',
|
||||||
label: t`Dashboard`,
|
label: t`Dashboard`,
|
||||||
icon: <IconDeviceDesktopAnalytics />,
|
icon: <IconDeviceDesktopAnalytics />,
|
||||||
content: <PlaceholderPanel />
|
content: (
|
||||||
|
<UserSettingList
|
||||||
|
keys={[
|
||||||
|
// TODO: These will be replaced with "dashboard" settings,
|
||||||
|
// once the new dashboard is implemented
|
||||||
|
'HOMEPAGE_HIDE_INACTIVE',
|
||||||
|
'HOMEPAGE_PART_STARRED',
|
||||||
|
'HOMEPAGE_CATEGORY_STARRED',
|
||||||
|
'HOMEPAGE_PART_LATEST',
|
||||||
|
'HOMEPAGE_BOM_REQUIRES_VALIDATION',
|
||||||
|
'HOMEPAGE_STOCK_RECENT',
|
||||||
|
'HOMEPAGE_STOCK_LOW',
|
||||||
|
'HOMEPAGE_SHOW_STOCK_DEPLETED',
|
||||||
|
'HOMEPAGE_BUILD_STOCK_NEEDED',
|
||||||
|
'HOMEPAGE_STOCK_EXPIRED',
|
||||||
|
'HOMEPAGE_STOCK_STALE',
|
||||||
|
'HOMEPAGE_BUILD_PENDING',
|
||||||
|
'HOMEPAGE_BUILD_OVERDUE',
|
||||||
|
'HOMEPAGE_PO_OUTSTANDING',
|
||||||
|
'HOMEPAGE_PO_OVERDUE',
|
||||||
|
'HOMEPAGE_SO_OUTSTANDING',
|
||||||
|
'HOMEPAGE_SO_OVERDUE',
|
||||||
|
'HOMEPAGE_SO_SHIPMENTS_PENDING',
|
||||||
|
'HOMEPAGE_NEWS'
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'display',
|
name: 'display',
|
||||||
|
@ -32,7 +32,6 @@ import {
|
|||||||
UnlinkBarcodeAction,
|
UnlinkBarcodeAction,
|
||||||
ViewBarcodeAction
|
ViewBarcodeAction
|
||||||
} from '../../components/items/ActionDropdown';
|
} from '../../components/items/ActionDropdown';
|
||||||
import { PlaceholderPanel } from '../../components/items/Placeholder';
|
|
||||||
import { StylishText } from '../../components/items/StylishText';
|
import { StylishText } from '../../components/items/StylishText';
|
||||||
import InstanceDetail from '../../components/nav/InstanceDetail';
|
import InstanceDetail from '../../components/nav/InstanceDetail';
|
||||||
import NavigationTree from '../../components/nav/NavigationTree';
|
import NavigationTree from '../../components/nav/NavigationTree';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user