修复前端域名DNS账户过滤:允许选择stored状态的已验证DNS账户
This commit is contained in:
parent
1a1a6b42d8
commit
03a857afa3
@ -26,7 +26,7 @@ export function useDomainDNSAccount({ fetchAdmin, form, saving }) {
|
|||||||
validID(account.id) && validID(account.provider) &&
|
validID(account.id) && validID(account.provider) &&
|
||||||
Number.isInteger(account.revision) && account.revision > 0 && account.revision <= 2147483647 &&
|
Number.isInteger(account.revision) && account.revision > 0 && account.revision <= 2147483647 &&
|
||||||
account.status === "active" && account.verification_state === "verified" &&
|
account.status === "active" && account.verification_state === "verified" &&
|
||||||
account.credential_state === "available",
|
["available", "stored"].includes(account.credential_state),
|
||||||
));
|
));
|
||||||
const dnsUnavailableSelection = computed(() => Boolean(dnsAccountID.value) &&
|
const dnsUnavailableSelection = computed(() => Boolean(dnsAccountID.value) &&
|
||||||
!domainDNSAccountOptions.value.some((account) => account.id === dnsAccountID.value));
|
!domainDNSAccountOptions.value.some((account) => account.id === dnsAccountID.value));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user