2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 02:05:29 +00:00

Request list of labels defined for a given stock item

This commit is contained in:
Oliver Walters
2022-03-25 22:16:36 +11:00
parent f0c5fb8355
commit 8e8015abe9
4 changed files with 58 additions and 6 deletions

View File

@ -333,6 +333,7 @@ class InvenTreeAPI {
// Default API version is 1 if not provided
_apiVersion = (data["apiVersion"] ?? 1) as int;
_pluginsEnabled = (data["plugins_enabled"] ?? false) as bool;
if (_apiVersion < _minApiVersion) {
@ -347,14 +348,12 @@ class InvenTreeAPI {
showServerError(
L10().serverOld,
message
message,
);
return false;
}
_pluginsEnabled = (data["plugins_enabled"] ?? false) as bool;
/**
* Request user token information from the server
* This is the stage that we check username:password credentials!