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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user