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

Fixed (most) of the raw text instances

This commit is contained in:
Oliver Walters
2021-05-19 23:08:44 +10:00
parent c8583aba04
commit 34a6a43d35
12 changed files with 51 additions and 66 deletions

View File

@ -410,7 +410,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
ListTile(
title: Text(I18N.of(context).stockLocation),
leading: FaIcon(FontAwesomeIcons.mapMarkerAlt),
subtitle: Text("No location set"),
subtitle: Text(I18N.of(context).locationNotSet),
)
);
}
@ -508,14 +508,14 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
if (!InvenTreeAPI().checkPermission('stock', 'change')) {
tiles.add(
ListTile(
title: Text("Permission Required"),
title: Text(I18N.of(context).permissionRequired),
leading: FaIcon(FontAwesomeIcons.userTimes)
)
);
tiles.add(
ListTile(
subtitle: Text("Your account does not have permission to perform stock adjustments"),
subtitle: Text(I18N.of(context).permissionAccountDenied),
)
);