mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-14 19:15:41 +00:00
Remove notYetImplemented func
This commit is contained in:
@ -3,20 +3,6 @@ import { notifications } from '@mantine/notifications';
|
|||||||
import { IconCircleCheck, IconExclamationCircle } from '@tabler/icons-react';
|
import { IconCircleCheck, IconExclamationCircle } from '@tabler/icons-react';
|
||||||
import { extractErrorMessage } from './api';
|
import { extractErrorMessage } from './api';
|
||||||
|
|
||||||
/**
|
|
||||||
* Show a notification that the feature is not yet implemented
|
|
||||||
*/
|
|
||||||
export function notYetImplemented() {
|
|
||||||
notifications.hide('not-implemented');
|
|
||||||
|
|
||||||
notifications.show({
|
|
||||||
title: t`Not implemented`,
|
|
||||||
message: t`This feature is not yet implemented`,
|
|
||||||
color: 'red',
|
|
||||||
id: 'not-implemented'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show a notification that the user does not have permission to perform the action
|
* Show a notification that the user does not have permission to perform the action
|
||||||
*/
|
*/
|
||||||
|
@ -30,10 +30,7 @@ import { BarcodeInput } from '../../components/barcodes/BarcodeInput';
|
|||||||
import type { BarcodeScanItem } from '../../components/barcodes/BarcodeScanItem';
|
import type { BarcodeScanItem } from '../../components/barcodes/BarcodeScanItem';
|
||||||
import { StylishText } from '../../components/items/StylishText';
|
import { StylishText } from '../../components/items/StylishText';
|
||||||
import PageTitle from '../../components/nav/PageTitle';
|
import PageTitle from '../../components/nav/PageTitle';
|
||||||
import {
|
import { showApiErrorMessage } from '../../functions/notifications';
|
||||||
notYetImplemented,
|
|
||||||
showApiErrorMessage
|
|
||||||
} from '../../functions/notifications';
|
|
||||||
import BarcodeScanTable from '../../tables/general/BarcodeScanTable';
|
import BarcodeScanTable from '../../tables/general/BarcodeScanTable';
|
||||||
|
|
||||||
export default function Scan() {
|
export default function Scan() {
|
||||||
@ -177,11 +174,7 @@ export default function Scan() {
|
|||||||
<Trans>Actions ... </Trans>
|
<Trans>Actions ... </Trans>
|
||||||
</Text>
|
</Text>
|
||||||
<Group>
|
<Group>
|
||||||
<ActionIcon
|
<ActionIcon onClick={() => {}} title={t`Count`} variant='default'>
|
||||||
onClick={notYetImplemented}
|
|
||||||
title={t`Count`}
|
|
||||||
variant='default'
|
|
||||||
>
|
|
||||||
<IconNumber />
|
<IconNumber />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
</Group>
|
</Group>
|
||||||
|
Reference in New Issue
Block a user