2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 10:15:32 +00:00

Remove floating action button

This commit is contained in:
Oliver
2021-08-16 20:40:29 +10:00
parent f027dff2af
commit 2720280ada
5 changed files with 16 additions and 31 deletions

View File

@ -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;
}