mirror of https://github.com/Chocobozzz/PeerTube
				
				
				
			Delete highlighted comment too if needed
							parent
							
								
									b6314e3cee
								
							
						
					
					
						commit
						73dc4da09e
					
				| 
						 | 
				
			
			@ -148,6 +148,8 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy {
 | 
			
		|||
          // Delete the thread
 | 
			
		||||
          this.comments = this.comments.filter(c => c.id !== commentToDelete.id)
 | 
			
		||||
          this.componentPagination.totalItems--
 | 
			
		||||
 | 
			
		||||
          if (this.highlightedThread.id === commentToDelete.id) this.highlightedThread = undefined
 | 
			
		||||
        },
 | 
			
		||||
 | 
			
		||||
        err => this.notificationsService.error(this.i18n('Error'), err.message)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue