mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-30 19:00:49 +00:00
Check if location is set before launching barcode scanner
This commit is contained in:
2
lib/l10n
2
lib/l10n
Submodule lib/l10n updated: 7a23f04bfc...c2348a6559
@ -298,6 +298,7 @@ List<Widget> detailTiles() {
|
|||||||
|
|
||||||
tiles.add(locationDescriptionCard(includeActions: false));
|
tiles.add(locationDescriptionCard(includeActions: false));
|
||||||
|
|
||||||
|
if (location != null) {
|
||||||
// Stock adjustment actions
|
// Stock adjustment actions
|
||||||
if (InvenTreeAPI().checkPermission('stock', 'change')) {
|
if (InvenTreeAPI().checkPermission('stock', 'change')) {
|
||||||
// Scan items into location
|
// Scan items into location
|
||||||
@ -319,6 +320,7 @@ List<Widget> detailTiles() {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Move location into another location
|
// Move location into another location
|
||||||
// TODO: Implement this!
|
// TODO: Implement this!
|
||||||
@ -332,6 +334,19 @@ List<Widget> detailTiles() {
|
|||||||
);
|
);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (tiles.length <= 1) {
|
||||||
|
tiles.add(
|
||||||
|
ListTile(
|
||||||
|
title: Text(
|
||||||
|
L10().actionsNone,
|
||||||
|
style: TextStyle(
|
||||||
|
fontStyle: FontStyle.italic
|
||||||
|
),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return tiles;
|
return tiles;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user