mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Refactor some more forms
This commit is contained in:
parent
1cadaa23d2
commit
4ff6ce1ca3
5 changed files with 28 additions and 32 deletions
|
|
@ -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();
|
||||
}
|
||||
);
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue