mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: show badges
This commit is contained in:
		
							parent
							
								
									c5ac1ef81f
								
							
						
					
					
						commit
						0d3e1bf77d
					
				| @ -51,9 +51,14 @@ const MilestoneListRendererCore = ({ | ||||
|                 const hasPendingDelete = milestonesWithDeletedAutomation.has( | ||||
|                     milestone.id, | ||||
|                 ); | ||||
|                 const hasPendingModification = milestonesWithAutomation.has( | ||||
|                     milestone.id, | ||||
|                 ); | ||||
| 
 | ||||
|                 const badge = hasPendingDelete ? ( | ||||
|                     <Badge color='error'>Deleted in draft</Badge> | ||||
|                 ) : hasPendingModification ? ( | ||||
|                     <Badge color='warning'>Modified in draft</Badge> | ||||
|                 ) : undefined; | ||||
| 
 | ||||
|                 const automationSection = | ||||
|  | ||||
| @ -134,10 +134,10 @@ export const ReleasePlan = ({ | ||||
|             ); | ||||
|             if (!featureInChangeRequest) continue; | ||||
| 
 | ||||
|             // Look for update or delete progression changes
 | ||||
|             // Look for change or delete progression changes
 | ||||
|             const progressionChange = featureInChangeRequest.changes.find( | ||||
|                 (change: any) => | ||||
|                     (change.action === 'updateMilestoneProgression' && | ||||
|                     (change.action === 'changeMilestoneProgression' && | ||||
|                         (change.payload.sourceMilestoneId === | ||||
|                             sourceMilestoneId || | ||||
|                             change.payload.sourceMilestone === | ||||
|  | ||||
| @ -84,14 +84,14 @@ export const MilestoneAutomation = ({ | ||||
| 
 | ||||
|     const hasPendingCreate = | ||||
|         pendingProgressionChange?.action === 'createMilestoneProgression'; | ||||
|     const hasPendingUpdate = | ||||
|         pendingProgressionChange?.action === 'updateMilestoneProgression'; | ||||
|     const hasPendingChange = | ||||
|         pendingProgressionChange?.action === 'changeMilestoneProgression'; | ||||
|     const hasPendingDelete = | ||||
|         pendingProgressionChange?.action === 'deleteMilestoneProgression'; | ||||
| 
 | ||||
|     const badge = hasPendingDelete ? ( | ||||
|         <Badge color='error'>Deleted in draft</Badge> | ||||
|     ) : hasPendingUpdate ? ( | ||||
|     ) : hasPendingChange ? ( | ||||
|         <Badge color='warning'>Modified in draft</Badge> | ||||
|     ) : undefined; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user