feat(TALE-30): add support for new DNS configs
This is a breaking change to support 0.23-beta2
This commit is contained in:
parent
b8999161a2
commit
5a46fd0a97
13 changed files with 98 additions and 68 deletions
|
|
@ -47,7 +47,7 @@ export default function AddDNS({ records }: Props) {
|
|||
setIp('')
|
||||
|
||||
submit({
|
||||
'dns_config.extra_records': [
|
||||
'dns.extra_records': [
|
||||
...records,
|
||||
{
|
||||
name,
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue