Feat: Make the expiry days sorted

This commit is contained in:
Nelson Chan 2022-05-26 12:17:24 +08:00
parent 46ee149b70
commit cfa5b551a5

View file

@ -83,6 +83,7 @@ export default {
if (parsedDay != null && !isNaN(parsedDay) && parsedDay > 0) {
if (!this.settings.tlsExpiryNotifyDays.includes(parsedDay)) {
this.settings.tlsExpiryNotifyDays.push(parseInt(day));
this.settings.tlsExpiryNotifyDays.sort((a, b) => a - b);
this.expiryNotifInput = null;
}
}