mirror of
https://github.com/inventree/inventree-app.git
synced 2025-05-09 10:48:54 +00:00
Selectively show certain buttons in the StockItem FAB menu
This commit is contained in:
parent
04b09b5591
commit
a64f46d79c
@ -173,6 +173,8 @@ class _StockItemDisplayState extends State<StockDetailWidget> {
|
||||
List<SpeedDialChild> actionButtons() {
|
||||
var buttons = List<SpeedDialChild>();
|
||||
|
||||
// The following actions only apply if the StockItem is not serialized
|
||||
if (!item.isSerialized()) {
|
||||
buttons.add(SpeedDialChild(
|
||||
child: Icon(Icons.add_circle),
|
||||
label: "Add Stock",
|
||||
@ -192,6 +194,7 @@ class _StockItemDisplayState extends State<StockDetailWidget> {
|
||||
label: "Count Stock",
|
||||
onTap: null,
|
||||
));
|
||||
}
|
||||
|
||||
buttons.add(SpeedDialChild(
|
||||
child: Icon(Icons.location_on),
|
||||
|
Loading…
x
Reference in New Issue
Block a user