feat(TALE-30): add support for new DNS configs

This is a breaking change to support 0.23-beta2
This commit is contained in:
Aarnav Tale 2024-08-22 16:55:05 -04:00
parent b8999161a2
commit 5a46fd0a97
No known key found for this signature in database
13 changed files with 98 additions and 68 deletions

View file

@ -47,7 +47,7 @@ export default function AddDNS({ records }: Props) {
setIp('')
submit({
'dns_config.extra_records': [
'dns.extra_records': [
...records,
{
name,

View file

@ -55,7 +55,7 @@ export default function AddNameserver({ nameservers }: Props) {
}
submit({
'dns_config.restricted_nameservers': splitNs,
'dns.nameservers.split': splitNs,
}, {
method: 'PATCH',
encType: 'application/json',
@ -65,7 +65,7 @@ export default function AddNameserver({ nameservers }: Props) {
globalNs.push(ns)
submit({
'dns_config.nameservers': globalNs,
'dns.nameservers.global': globalNs,
}, {
method: 'PATCH',
encType: 'application/json',