Skip to content

Commit

Permalink
Remove unused setting (#8731)
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat authored Dec 20, 2024
1 parent aabcf52 commit d8207c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
6 changes: 0 additions & 6 deletions src/backend/InvenTree/common/setting/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -1003,12 +1003,6 @@ def __call__(self, value):
'validator': bool,
'after_save': reload_plugin_registry,
},
'PROJECT_CODES_ENABLED': {
'name': _('Enable project codes'),
'description': _('Enable project codes for tracking projects'),
'default': False,
'validator': bool,
},
'STOCKTAKE_ENABLE': {
'name': _('Stocktake Functionality'),
'description': _(
Expand Down
13 changes: 1 addition & 12 deletions src/frontend/src/pages/Index/Settings/AdminCenter/Index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
import { Trans, t } from '@lingui/macro';
import {
Divider,
Paper,
SimpleGrid,
Skeleton,
Stack,
Text,
Title
} from '@mantine/core';
import { Paper, SimpleGrid, Skeleton, Stack, Text, Title } from '@mantine/core';
import {
IconClipboardCheck,
IconCoins,
Expand All @@ -34,7 +26,6 @@ import PageTitle from '../../../../components/nav/PageTitle';
import { SettingsHeader } from '../../../../components/nav/SettingsHeader';
import type { PanelType } from '../../../../components/panels/Panel';
import { PanelGroup } from '../../../../components/panels/PanelGroup';
import { GlobalSettingList } from '../../../../components/settings/SettingList';
import { Loadable } from '../../../../functions/loading';
import { useUserState } from '../../../../states/UserState';

Expand Down Expand Up @@ -153,8 +144,6 @@ export default function AdminCenter() {
icon: <IconListDetails />,
content: (
<Stack gap='xs'>
<GlobalSettingList keys={['PROJECT_CODES_ENABLED']} />
<Divider />
<ProjectCodeTable />
</Stack>
)
Expand Down

0 comments on commit d8207c8

Please sign in to comment.