Update app.js
This commit is contained in:
@@ -1625,6 +1625,7 @@ async function crmSetStageSelected(stage) {
|
|||||||
const ok = await confirmDialog(
|
const ok = await confirmDialog(
|
||||||
`Set Stage to ${stage}`,
|
`Set Stage to ${stage}`,
|
||||||
`Set stage to “${stage}” for ${ids.length} contact${ids.length !== 1 ? "s" : ""}?`,
|
`Set stage to “${stage}” for ${ids.length} contact${ids.length !== 1 ? "s" : ""}?`,
|
||||||
|
stage,
|
||||||
);
|
);
|
||||||
if (!ok) return;
|
if (!ok) return;
|
||||||
|
|
||||||
@@ -1650,7 +1651,7 @@ async function crmSetStageSelected(stage) {
|
|||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
const res = await apiFetch(apiUrl(ROUTES.crm), {
|
const res = await apiFetch(apiUrl(ROUTES.crm), {
|
||||||
method: "PUT",
|
method: "POST",
|
||||||
headers: apiHeaders(),
|
headers: apiHeaders(),
|
||||||
body: JSON.stringify(payload),
|
body: JSON.stringify(payload),
|
||||||
});
|
});
|
||||||
@@ -1731,7 +1732,7 @@ async function crmSaveEdit() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await apiFetch(apiUrl(ROUTES.crm), {
|
const res = await apiFetch(apiUrl(ROUTES.crm), {
|
||||||
method: "PUT",
|
method: "POST",
|
||||||
headers: apiHeaders(),
|
headers: apiHeaders(),
|
||||||
body: JSON.stringify(payload),
|
body: JSON.stringify(payload),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user