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