2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-04-21 18:50:52 +00:00

Barcode scan tweaks (#10992)

* Remove duplicate tooltip

* Adjust default value

* docs update

* Tweak unit test

* Fix playwright tests
This commit is contained in:
Oliver
2025-12-11 16:19:47 +11:00
committed by GitHub
parent 0723c74567
commit 20c7a5b5b8
9 changed files with 49 additions and 13 deletions

View File

@@ -16,7 +16,7 @@ export const setSettingState = async ({
type?: 'global' | 'plugin';
plugin?: string;
}) => {
const api = await createApi();
const api = await createApi({});
const url =
type === 'global'
? `settings/global/${setting}/`
@@ -37,7 +37,7 @@ export const setPluginState = async ({
plugin: string;
state: boolean;
}) => {
const api = await createApi();
const api = await createApi({});
const response = await api.patch(`plugins/${plugin}/activate/`, {
data: {
active: state