mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-13 18:45:40 +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 { 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
|
||||
*/
|
||||
|
@ -30,10 +30,7 @@ import { BarcodeInput } from '../../components/barcodes/BarcodeInput';
|
||||
import type { BarcodeScanItem } from '../../components/barcodes/BarcodeScanItem';
|
||||
import { StylishText } from '../../components/items/StylishText';
|
||||
import PageTitle from '../../components/nav/PageTitle';
|
||||
import {
|
||||
notYetImplemented,
|
||||
showApiErrorMessage
|
||||
} from '../../functions/notifications';
|
||||
import { showApiErrorMessage } from '../../functions/notifications';
|
||||
import BarcodeScanTable from '../../tables/general/BarcodeScanTable';
|
||||
|
||||
export default function Scan() {
|
||||
@ -177,11 +174,7 @@ export default function Scan() {
|
||||
<Trans>Actions ... </Trans>
|
||||
</Text>
|
||||
<Group>
|
||||
<ActionIcon
|
||||
onClick={notYetImplemented}
|
||||
title={t`Count`}
|
||||
variant='default'
|
||||
>
|
||||
<ActionIcon onClick={() => {}} title={t`Count`} variant='default'>
|
||||
<IconNumber />
|
||||
</ActionIcon>
|
||||
</Group>
|
||||
|
Reference in New Issue
Block a user