mirror of
https://github.com/inventree/inventree-app.git
synced 2025-05-10 11:18:52 +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() {
|
List<SpeedDialChild> actionButtons() {
|
||||||
var buttons = List<SpeedDialChild>();
|
var buttons = List<SpeedDialChild>();
|
||||||
|
|
||||||
|
// The following actions only apply if the StockItem is not serialized
|
||||||
|
if (!item.isSerialized()) {
|
||||||
buttons.add(SpeedDialChild(
|
buttons.add(SpeedDialChild(
|
||||||
child: Icon(Icons.add_circle),
|
child: Icon(Icons.add_circle),
|
||||||
label: "Add Stock",
|
label: "Add Stock",
|
||||||
@ -192,6 +194,7 @@ class _StockItemDisplayState extends State<StockDetailWidget> {
|
|||||||
label: "Count Stock",
|
label: "Count Stock",
|
||||||
onTap: null,
|
onTap: null,
|
||||||
));
|
));
|
||||||
|
}
|
||||||
|
|
||||||
buttons.add(SpeedDialChild(
|
buttons.add(SpeedDialChild(
|
||||||
child: Icon(Icons.location_on),
|
child: Icon(Icons.location_on),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user