2
0
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:
Oliver
2021-08-10 16:58:59 +10:00
parent fcc5bf8c30
commit 0d11af002b
3 changed files with 28 additions and 1 deletions

View File

@ -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;
}