mirror of
https://github.com/inventree/inventree-app.git
synced 2025-05-03 07:48:53 +00:00
Remove ability to edit stock item
This commit is contained in:
parent
e77b9539f9
commit
081b6aa27c
@ -39,18 +39,6 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
|
||||
@override
|
||||
String getAppBarTitle(BuildContext context) => I18N.of(context).stockItem;
|
||||
|
||||
@override
|
||||
List<Widget> getAppBarActions(BuildContext context) {
|
||||
return <Widget>[
|
||||
// TODO: Hide the 'edit' button if the user does not have permission!!
|
||||
IconButton(
|
||||
icon: FaIcon(FontAwesomeIcons.edit),
|
||||
tooltip: I18N.of(context).edit,
|
||||
onPressed: _editStockItemDialog,
|
||||
)
|
||||
];
|
||||
}
|
||||
|
||||
final TextEditingController _quantityController = TextEditingController();
|
||||
final TextEditingController _notesController = TextEditingController();
|
||||
|
||||
@ -72,35 +60,6 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
|
||||
await item.getTestResults(context);
|
||||
}
|
||||
|
||||
void _editStockItem() {
|
||||
// TODO - Form for editing stock item
|
||||
}
|
||||
|
||||
void _editStockItemDialog() {
|
||||
|
||||
return;
|
||||
// TODO - Finish implementing this
|
||||
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return AlertDialog(
|
||||
title: Text("Edit Stock Item"),
|
||||
actions: <Widget>[
|
||||
FlatButton(
|
||||
child: Text("Save"),
|
||||
onPressed: () {
|
||||
if (_editStockKey.currentState.validate()) {
|
||||
// TODO
|
||||
}
|
||||
},
|
||||
)
|
||||
],
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
void _addStock() async {
|
||||
|
||||
Navigator.of(context).pop();
|
||||
|
Loading…
x
Reference in New Issue
Block a user