Typo
This commit is contained in:
@@ -113,15 +113,15 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
const params = new URLSearchParams(window.location.search);
|
const params = new URLSearchParams(window.location.search);
|
||||||
const uuid = params.get("UUID");
|
const uuid = params.get("uuid");
|
||||||
|
|
||||||
const webhookBase = "https://002-001-5dd6e535-4d1c-46bc-9bd9-42ad4bc5f082.odoo4projects.com/webhook/0c8536be-d175-4740-8e78-123159193b23";
|
const webhookBase = "https://002-001-5dd6e535-4d1c-46bc-9bd9-42ad4bc5f082.odoo4projects.com/webhook/0c8536be-d175-4740-8e78-123159193b23";
|
||||||
const webhookGet = `/get-data?UUID=${uuid}`;
|
const webhookGet = `/get-data?uuid=${uuid}`;
|
||||||
const webhookPost = `${webhookBase}/submit-data`;
|
const webhookPost = `${webhookBase}/submit-data`;
|
||||||
|
|
||||||
async function loadData() {
|
async function loadData() {
|
||||||
if (!uuid) {
|
if (!uuid) {
|
||||||
alert("Missing UUID parameter in URL");
|
alert("Missing uuid parameter in URL");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
@@ -196,7 +196,7 @@ function calculateCost() {
|
|||||||
document.getElementById("upgradeForm").addEventListener("submit", async (e) => {
|
document.getElementById("upgradeForm").addEventListener("submit", async (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const payload = {
|
const payload = {
|
||||||
UUID: uuid,
|
uuid: uuid,
|
||||||
git: document.getElementById("git").checked,
|
git: document.getElementById("git").checked,
|
||||||
domains: parseInt(document.getElementById("domains").value),
|
domains: parseInt(document.getElementById("domains").value),
|
||||||
backupSlots: parseInt(document.getElementById("backupSlots").value),
|
backupSlots: parseInt(document.getElementById("backupSlots").value),
|
||||||
|
|||||||
Reference in New Issue
Block a user