feat(maintenance): add quick duration buttons and pre-fill datetime fields (#6718)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
Dorian Grasset
2026-01-14 09:12:19 +01:00
committed by GitHub
parent 2790e3d9e6
commit d893231c6d
5 changed files with 166 additions and 13 deletions
+3 -3
View File
@@ -85,12 +85,12 @@ export default {
title() {
if (this.type === "1y") {
return `1 ${this.$tc("year", 1)}`;
return this.$tc("years", 1, { n: 1 });
}
if (this.type === "720") {
return `30 ${this.$tc("day", 30)}`;
return this.$tc("days", 30, { n: 30 });
}
return `24 ${this.$tc("hour", 24)}`;
return this.$tc("hours", 24, { n: 24 });
},
},
};
+2 -2
View File
@@ -79,7 +79,7 @@
<ActionInput
v-model="tlsExpiryNotifInput"
:type="'number'"
:placeholder="$t('day')"
:placeholder="$tc('days', 1, { n: 1 })"
:icon="'plus'"
:action="() => addTlsExpiryNotifDay(tlsExpiryNotifInput)"
:action-aria-label="$t('Add a new expiry notification day')"
@@ -117,7 +117,7 @@
<ActionInput
v-model="domainExpiryNotifInput"
:type="'number'"
:placeholder="$t('day')"
:placeholder="$tc('days', 1, { n: 1 })"
:icon="'plus'"
:action="() => addDomainExpiryNotifDay(domainExpiryNotifInput)"
:action-aria-label="$t('Add a new expiry notification day')"