mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-13 02:35:27 +00:00
Barcode refactor (#381)
* Simplify barcode scanning interface * Use consistent colors * Fix notches * Remove old comment
This commit is contained in:
@ -181,21 +181,18 @@ class _InvenTreeHomePageState extends State<InvenTreeHomePage> with BaseWidgetPr
|
||||
),
|
||||
),
|
||||
onTap: () {
|
||||
|
||||
if (!allowed) {
|
||||
showSnackIcon(
|
||||
L10().permissionRequired,
|
||||
icon: FontAwesomeIcons.circleExclamation,
|
||||
success: false,
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (callback != null) {
|
||||
callback();
|
||||
}
|
||||
|
||||
},
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user