mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-09 03:10:11 +00:00
ui: acme add domain: prefill with nodename.
FQDN would be more ideal, though Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
a94b71fba8
commit
8b779b4a27
@ -316,6 +316,9 @@ Ext.define('PVE.node.ACMEDomainEdit', {
|
|||||||
}
|
}
|
||||||
|
|
||||||
me.isCreate = !me.domain;
|
me.isCreate = !me.domain;
|
||||||
|
if (me.isCreate) {
|
||||||
|
me.domain = `${me.nodename}.`; // TODO: FQDN of node
|
||||||
|
}
|
||||||
|
|
||||||
me.url = `/api2/extjs/nodes/${me.nodename}/config`;
|
me.url = `/api2/extjs/nodes/${me.nodename}/config`;
|
||||||
|
|
||||||
@ -323,6 +326,8 @@ Ext.define('PVE.node.ACMEDomainEdit', {
|
|||||||
|
|
||||||
if (!me.isCreate) {
|
if (!me.isCreate) {
|
||||||
me.setValues(me.domain);
|
me.setValues(me.domain);
|
||||||
|
} else {
|
||||||
|
me.setValues({ domain: me.domain });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user