2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 20:16:44 +00:00

Remove unused setting (#8731)

This commit is contained in:
Oliver 2024-12-21 08:33:31 +11:00 committed by GitHub
parent aabcf52cd2
commit d8207c88f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 18 deletions

View File

@ -1003,12 +1003,6 @@ SYSTEM_SETTINGS: dict[str, InvenTreeSettingsKeyType] = {
'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': _(

View File

@ -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,
@ -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';
@ -153,8 +144,6 @@ export default function AdminCenter() {
icon: <IconListDetails />,
content: (
<Stack gap='xs'>
<GlobalSettingList keys={['PROJECT_CODES_ENABLED']} />
<Divider />
<ProjectCodeTable />
</Stack>
)