mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-14 11:15:26 +00:00
Refactor some more forms
This commit is contained in:
@ -46,16 +46,14 @@ class _PartNotesState extends RefreshableState<PartNotesWidget> {
|
||||
icon: FaIcon(FontAwesomeIcons.edit),
|
||||
tooltip: L10().edit,
|
||||
onPressed: () {
|
||||
launchApiForm(
|
||||
part.editForm(
|
||||
context,
|
||||
L10().editNotes,
|
||||
part.url,
|
||||
{
|
||||
fields: {
|
||||
"notes": {
|
||||
"multiline": true,
|
||||
}
|
||||
},
|
||||
modelData: part.jsondata,
|
||||
onSuccess: (data) async {
|
||||
refresh();
|
||||
}
|
||||
|
Reference in New Issue
Block a user