mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Add search delegate for stock items
This commit is contained in:
parent
858464d301
commit
5c7629d4d1
3 changed files with 188 additions and 11 deletions
|
|
@ -6,6 +6,7 @@ import 'package:InvenTree/widget/progress.dart';
|
|||
import 'package:InvenTree/widget/refreshable_state.dart';
|
||||
import 'package:InvenTree/widget/fields.dart';
|
||||
import 'package:InvenTree/widget/dialogs.dart';
|
||||
import 'package:InvenTree/widget/search.dart';
|
||||
import 'package:InvenTree/widget/snacks.dart';
|
||||
import 'package:InvenTree/widget/stock_detail.dart';
|
||||
|
||||
|
|
@ -39,6 +40,15 @@ class _LocationDisplayState extends RefreshableState<LocationDisplayWidget> {
|
|||
@override
|
||||
List<Widget> getAppBarActions(BuildContext context) {
|
||||
return <Widget>[
|
||||
IconButton(
|
||||
icon: FaIcon(FontAwesomeIcons.search),
|
||||
onPressed: () {
|
||||
showSearch(
|
||||
context: context,
|
||||
delegate: StockSearchDelegate(filters: {"location": "${location.pk}"})
|
||||
);
|
||||
}
|
||||
),
|
||||
IconButton(
|
||||
icon: FaIcon(FontAwesomeIcons.edit),
|
||||
tooltip: I18N.of(context).edit,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue