mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 13:36:50 +00:00
stash
This commit is contained in:
parent
284c59d8f8
commit
ba9f09cd65
@ -516,10 +516,11 @@ class InvenTreeAPI {
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
// Include the statuscode in the response object
|
||||
responseData["statusCode"] = response.statusCode;
|
||||
|
||||
return responseData;
|
||||
}
|
||||
|
||||
|
@ -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: () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user