diff --git a/web/src/components/domains/DomainEditModal.vue b/web/src/components/domains/DomainEditModal.vue index fbd52cf..7318fa5 100644 --- a/web/src/components/domains/DomainEditModal.vue +++ b/web/src/components/domains/DomainEditModal.vue @@ -25,28 +25,28 @@ @@ -62,16 +62,16 @@ {{ t('common.cancel') }} - - - - {{ t('common.confirm') }} - - + + + + {{ t('common.confirm') }} + @@ -92,12 +92,11 @@ import { NButton, NInput, NInputNumber, - NSpin, useNotification, type FormRules, type FormItemRule } from 'naive-ui' -import { ref, watch } from 'vue'; +import { ref } from 'vue'; import { useI18n } from 'vue-i18n'; const enum validFlags { @@ -105,7 +104,7 @@ const enum validFlags { mainNsValid = domainNameValid << 1, adminEmailValid = mainNsValid << 1 } -const allFlags = validFlags.adminEmailValid|validFlags.mainNsValid|validFlags.domainNameValid +const allFlags = validFlags.adminEmailValid | validFlags.mainNsValid | validFlags.domainNameValid const { t } = useI18n() @@ -133,7 +132,6 @@ const rules = { main_dns: [{ required: true, trigger: 'blur', - validator: (_rule: FormItemRule, value: string) => { return validate( value, @@ -173,6 +171,7 @@ const rules = { negative_ttl: [{ required: true, trigger: 'blur', + type: 'number' }] } as FormRules @@ -197,7 +196,7 @@ async function confirm() { } function validate(value: string, reg: RegExp, msg: string, flag: validFlags): Promise { - return new Promise((resolve, reject) => { + return new Promise((resolve, reject) => { if (!value) { invalidData.value &= ~flag reject(Error(t('common.mandatory'))) diff --git a/web/src/components/domains/DomainRemoveModal.vue b/web/src/components/domains/DomainRemoveModal.vue index e22b3c5..55e35af 100644 --- a/web/src/components/domains/DomainRemoveModal.vue +++ b/web/src/components/domains/DomainRemoveModal.vue @@ -24,17 +24,16 @@ {{ t('common.cancel') }} - - - - {{ t('common.confirm') }} - - + + + + {{ t('common.confirm') }} + @@ -43,7 +42,7 @@ \ No newline at end of file diff --git a/web/src/components/records/RecordOps.vue b/web/src/components/records/RecordOps.vue index fc08a7e..c18ead0 100644 --- a/web/src/components/records/RecordOps.vue +++ b/web/src/components/records/RecordOps.vue @@ -11,7 +11,7 @@ {{ $t("common.edit") }} - +