mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-10-31 19:39:20 +08:00 
			
		
		
		
	Feat: Make the expiry days sorted
This commit is contained in:
		| @@ -83,6 +83,7 @@ export default { | |||||||
|                 if (parsedDay != null && !isNaN(parsedDay) && parsedDay > 0) { |                 if (parsedDay != null && !isNaN(parsedDay) && parsedDay > 0) { | ||||||
|                     if (!this.settings.tlsExpiryNotifyDays.includes(parsedDay)) { |                     if (!this.settings.tlsExpiryNotifyDays.includes(parsedDay)) { | ||||||
|                         this.settings.tlsExpiryNotifyDays.push(parseInt(day)); |                         this.settings.tlsExpiryNotifyDays.push(parseInt(day)); | ||||||
|  |                         this.settings.tlsExpiryNotifyDays.sort((a, b) => a - b); | ||||||
|                         this.expiryNotifInput = null; |                         this.expiryNotifInput = null; | ||||||
|                     } |                     } | ||||||
|                 } |                 } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user