From 687afc4eed123df9a82e3f9ff702d1edcbe6135f Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 16 Aug 2021 11:50:12 +1000 Subject: [PATCH] Fixes: - Hide action that doesn't work yet - Change "parent category" to "parent location" --- lib/l10n | 2 +- lib/widget/location_display.dart | 2 +- lib/widget/part_detail.dart | 23 +++++++++++++---------- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/lib/l10n b/lib/l10n index e6b7dd53..951063e0 160000 --- a/lib/l10n +++ b/lib/l10n @@ -1 +1 @@ -Subproject commit e6b7dd53bc43e084325c2bb414436b559d18931a +Subproject commit 951063e039d4659159f42ec6425092f4f3bb808c diff --git a/lib/widget/location_display.dart b/lib/widget/location_display.dart index c26d8999..8e518c3b 100644 --- a/lib/widget/location_display.dart +++ b/lib/widget/location_display.dart @@ -211,7 +211,7 @@ class _LocationDisplayState extends RefreshableState { 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: () { diff --git a/lib/widget/part_detail.dart b/lib/widget/part_detail.dart index 596237d9..5d52736e 100644 --- a/lib/widget/part_detail.dart +++ b/lib/widget/part_detail.dart @@ -436,16 +436,19 @@ class _PartDisplayState extends RefreshableState { ) ); - 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(