mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 19:46:25 +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
|
|
@ -66,7 +66,7 @@ class _CategoryDisplayState extends RefreshableState<CategoryDisplayWidget> {
|
|||
context,
|
||||
L10().editCategory,
|
||||
onSuccess: (data) async {
|
||||
refresh();
|
||||
refresh(context);
|
||||
showSnackIcon(L10().categoryUpdated, success: true);
|
||||
}
|
||||
);
|
||||
|
|
@ -79,11 +79,11 @@ class _CategoryDisplayState extends RefreshableState<CategoryDisplayWidget> {
|
|||
|
||||
@override
|
||||
Future<void> onBuild(BuildContext context) async {
|
||||
refresh();
|
||||
refresh(context);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> request() async {
|
||||
Future<void> request(BuildContext context) async {
|
||||
|
||||
int pk = category?.pk ?? -1;
|
||||
|
||||
|
|
@ -234,7 +234,7 @@ class _CategoryDisplayState extends RefreshableState<CategoryDisplayWidget> {
|
|||
)
|
||||
);
|
||||
} else {
|
||||
refresh();
|
||||
refresh(context);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue