mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-12 10:15:32 +00:00
Adds placeholder for action to delete part
This commit is contained in:
@ -400,6 +400,19 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
if (false && !part.isActive && InvenTreeAPI().checkPermission('part', 'delete')) {
|
||||
tiles.add(
|
||||
ListTile(
|
||||
title: Text(L10().deletePart),
|
||||
subtitle: Text(L10().deletePartDetail),
|
||||
leading: FaIcon(FontAwesomeIcons.trashAlt, color: COLOR_DANGER),
|
||||
onTap: () {
|
||||
// TODO
|
||||
},
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
return tiles;
|
||||
}
|
||||
|
Reference in New Issue
Block a user