2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-05-05 00:38:54 +00:00
- Hide action that doesn't work yet
- Change "parent category" to "parent location"
This commit is contained in:
Oliver 2021-08-16 11:50:12 +10:00
parent 1896b71533
commit 687afc4eed
3 changed files with 15 additions and 12 deletions

@ -1 +1 @@
Subproject commit e6b7dd53bc43e084325c2bb414436b559d18931a
Subproject commit 951063e039d4659159f42ec6425092f4f3bb808c

View File

@ -211,7 +211,7 @@ class _LocationDisplayState extends RefreshableState<LocationDisplayWidget> {
if (includeActions) {
children.add(
ListTile(
title: Text(L10().parentCategory),
title: Text(L10().parentLocation),
subtitle: Text("${location!.parentpathstring}"),
leading: FaIcon(FontAwesomeIcons.levelUpAlt, color: COLOR_CLICK),
onTap: () {

View File

@ -436,16 +436,19 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
)
);
tiles.add(
ListTile(
title: Text(L10().barcodeScanItem),
leading: FaIcon(FontAwesomeIcons.box),
trailing: FaIcon(FontAwesomeIcons.qrcode),
onTap: () {
// TODO
},
),
);
// TODO - Add this action back in once implemented
if (false) {
tiles.add(
ListTile(
title: Text(L10().barcodeScanItem),
leading: FaIcon(FontAwesomeIcons.box),
trailing: FaIcon(FontAwesomeIcons.qrcode),
onTap: () {
// TODO
},
),
);
}
if (false && !part.isActive && InvenTreeAPI().checkPermission('part', 'delete')) {
tiles.add(