2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 05:26:47 +00:00
This commit is contained in:
Oliver 2021-07-16 08:23:34 +10:00
parent 284c59d8f8
commit ba9f09cd65
2 changed files with 22 additions and 2 deletions

View File

@ -516,10 +516,11 @@ class InvenTreeAPI {
}
);
}
return null;
}
// Include the statuscode in the response object
responseData["statusCode"] = response.statusCode;
return responseData;
}

View File

@ -1,5 +1,6 @@
import 'dart:io';
import 'package:InvenTree/api_form.dart';
import 'package:InvenTree/widget/part_notes.dart';
import 'package:InvenTree/widget/progress.dart';
import 'package:InvenTree/widget/snacks.dart';
@ -178,6 +179,24 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
var _keywords;
var _link;
launchApiForm(
"Edit Part",
part.url,
{
"name": {},
"description": {},
"IPN": {
"hidden": true,
"label": "My custom label!",
},
"active": {},
},
modelData: part.jsondata
);
return;
showFormDialog(L10().editPart,
key: _editPartKey,
callback: () {