mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-14 03:56:24 +00:00
Open web links
This commit is contained in:
parent
1ac6b7e7dc
commit
b0aaccb9e3
3 changed files with 63 additions and 1 deletions
|
|
@ -55,6 +55,28 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
|
|||
_StockItemDisplayState(this.item) {
|
||||
}
|
||||
|
||||
@override
|
||||
List<Widget> getAppBarActions(BuildContext context) {
|
||||
return <Widget>[
|
||||
IconButton(
|
||||
icon: FaIcon(FontAwesomeIcons.globe),
|
||||
onPressed: _openInvenTreePage,
|
||||
),
|
||||
// TODO: Hide the 'edit' button if the user does not have permission!!
|
||||
/*
|
||||
IconButton(
|
||||
icon: FaIcon(FontAwesomeIcons.edit),
|
||||
tooltip: I18N.of(context).edit,
|
||||
onPressed: _editPartDialog,
|
||||
)
|
||||
*/
|
||||
];
|
||||
}
|
||||
|
||||
Future<void> _openInvenTreePage() async {
|
||||
item.goToInvenTreePage();
|
||||
}
|
||||
|
||||
// StockItem object
|
||||
final InvenTreeStockItem item;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue