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