mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Pop to the previous context if the stock item is "bad"
This commit is contained in:
parent
0b3e716827
commit
faf8e45138
12 changed files with 60 additions and 50 deletions
|
|
@ -31,7 +31,7 @@ class _StockNotesState extends RefreshableState<StockNotesWidget> {
|
|||
String getAppBarTitle(BuildContext context) => L10().stockItemNotes;
|
||||
|
||||
@override
|
||||
Future<void> request() async {
|
||||
Future<void> request(BuildContext context) async {
|
||||
await item.reload();
|
||||
}
|
||||
|
||||
|
|
@ -54,7 +54,7 @@ class _StockNotesState extends RefreshableState<StockNotesWidget> {
|
|||
}
|
||||
},
|
||||
onSuccess: (data) async {
|
||||
refresh();
|
||||
refresh(context);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue