diff --git a/src/components/standalone/users_objects/CreateOrEditDomainSetDrawer.vue b/src/components/standalone/users_objects/CreateOrEditDomainSetDrawer.vue index f542d0ab0..07fa7b5c2 100644 --- a/src/components/standalone/users_objects/CreateOrEditDomainSetDrawer.vue +++ b/src/components/standalone/users_objects/CreateOrEditDomainSetDrawer.vue @@ -125,9 +125,7 @@ function runFieldValidators( return validators.every((validator) => validator.valid) } -function validateRecordsRequired() { - let totalChars = 0 - +function validateRecords() { for (const record of records.value) { if (!record) { return { valid: false, errMessage: 'error.empty_domains' } @@ -137,14 +135,6 @@ function validateRecordsRequired() { if (!valid) { return { valid: false, errMessage: 'error.invalid_domains' } } - totalChars += record.length - } - - if (totalChars >= 960) { - return { - valid: false, - errMessage: 'error.domains_total_chars_exceeded' - } } return { valid: true } } @@ -174,7 +164,7 @@ function validate() { nameRef ], // records - [[validateRecordsRequired()], 'ipaddr', recordRef] + [[validateRecords()], 'domain', recordRef] ] // reset firstErrorRef for focus management @@ -281,10 +271,10 @@ async function saveDomainSet() { />
- {{ t(errorBag.getFirstI18nKeyFor('ipaddr')) }} + {{ t(errorBag.getFirstI18nKeyFor('domain')) }}