mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-10-29 20:40:35 +00:00 
			
		
		
		
	Adds placeholder for action to delete part
This commit is contained in:
		
							
								
								
									
										2
									
								
								lib/l10n
									
									
									
									
									
								
							
							
								
								
								
								
								
							
						
						
									
										2
									
								
								lib/l10n
									
									
									
									
									
								
							 Submodule lib/l10n updated: ad2e43ea5e...0e304cc16f
									
								
							| @@ -297,6 +297,20 @@ class _CategoryDisplayState extends RefreshableState<CategoryDisplayWidget> { | |||||||
|       } |       } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     if (tiles.length == 0) { | ||||||
|  |       tiles.add( | ||||||
|  |         ListTile( | ||||||
|  |           title: Text( | ||||||
|  |             L10().actionsNone | ||||||
|  |           ), | ||||||
|  |           subtitle: Text( | ||||||
|  |             L10().permissionAccountDenied, | ||||||
|  |           ), | ||||||
|  |           leading: FaIcon(FontAwesomeIcons.userTimes), | ||||||
|  |         ) | ||||||
|  |       ); | ||||||
|  |     } | ||||||
|  |  | ||||||
|     return tiles; |     return tiles; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -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; |     return tiles; | ||||||
|   } |   } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user