mirror of
				https://github.com/axllent/mailpit.git
				synced 2025-10-31 00:07:43 +02:00 
			
		
		
		
	UI: Update pagination values when new mail arrives when not on first page
This commit is contained in:
		| @@ -210,12 +210,14 @@ export default { | ||||
| 				} | ||||
| 				// new messages | ||||
| 				if (response.Type == "new" && response.Data) { | ||||
|                 	if (self.start < 1) { | ||||
| 						if (!self.searching) { | ||||
| 					if (!self.searching) { | ||||
|                 		if (self.start < 1) { | ||||
| 							self.items.unshift(response.Data); | ||||
| 							if (self.items.length > self.limit) { | ||||
| 								self.items.pop(); | ||||
| 							} | ||||
| 						} else { | ||||
| 							self.start++; | ||||
| 						} | ||||
| 					} | ||||
| 	                self.total++; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user