2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 18:25:26 +00:00

Display stock item status

This commit is contained in:
Oliver Walters
2021-02-10 21:30:50 +11:00
parent dbc2a7b12b
commit ce2a866384
5 changed files with 59 additions and 7 deletions

View File

@ -99,6 +99,7 @@ class _LocationDisplayState extends RefreshableState<LocationDisplayWidget> {
child: ListTile(
title: Text(I18N.of(context).stockLocations),
subtitle: Text(I18N.of(context).stockTopLevel),
leading: FaIcon(FontAwesomeIcons.levelUpAlt),
)
);
} else {
@ -112,6 +113,7 @@ class _LocationDisplayState extends RefreshableState<LocationDisplayWidget> {
ListTile(
title: Text("Parent Category"),
subtitle: Text("${location.parentpathstring}"),
leading: FaIcon(FontAwesomeIcons.levelUpAlt),
onTap: () {
if (location.parentId < 0) {
Navigator.push(context, MaterialPageRoute(builder: (context) => LocationDisplayWidget(null)));