mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Remove floating action button
This commit is contained in:
parent
f027dff2af
commit
2720280ada
5 changed files with 16 additions and 31 deletions
15
lib/api.dart
15
lib/api.dart
|
|
@ -262,12 +262,7 @@ class InvenTreeAPI {
|
|||
|
||||
response = await get("", expectedStatusCode: 200);
|
||||
|
||||
// Response was invalid for some reason
|
||||
if (!response.isValid()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (response.statusCode != 200) {
|
||||
if (!response.successful()) {
|
||||
showStatusCodeError(response.statusCode);
|
||||
return false;
|
||||
}
|
||||
|
|
@ -319,11 +314,7 @@ class InvenTreeAPI {
|
|||
response = await get(_URL_GET_TOKEN);
|
||||
|
||||
// Invalid response
|
||||
if (!response.isValid()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (response.statusCode != 200) {
|
||||
if (!response.successful()) {
|
||||
|
||||
switch (response.statusCode) {
|
||||
case 401:
|
||||
|
|
@ -419,7 +410,7 @@ class InvenTreeAPI {
|
|||
|
||||
var response = await get(_URL_GET_ROLES, expectedStatusCode: 200);
|
||||
|
||||
if (!response.isValid() || response.statusCode != 200) {
|
||||
if (!response.successful()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue