Admin -> Antifraud -> External DB check, preview, save template edited
This commit is contained in:
@@ -119,12 +119,12 @@
|
|||||||
alert("ID подключения отсутствует.");
|
alert("ID подключения отсутствует.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
fetch(`/admin/antifroud/externaldbsettings/test-connection/?db_id=${dbId}`)
|
fetch(`/antifroud/externaldbsettings/test-connection/?db_id=${dbId}`)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
if (data.status === "success") {
|
if (data.status === "success") {
|
||||||
document.getElementById("connection-status").innerHTML = `<div class="alert alert-success">${data.message}</div>`;
|
document.getElementById("connection-status").innerHTML = `<div class="alert alert-success">${data.message}</div>`;
|
||||||
fetch(`/admin/antifroud/externaldbsettings/fetch-tables/?db_id=${dbId}`)
|
fetch(`/antifroud/externaldbsettings/fetch-tables/?db_id=${dbId}`)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(tableData => {
|
.then(tableData => {
|
||||||
if (tableData.status === "success") {
|
if (tableData.status === "success") {
|
||||||
@@ -153,7 +153,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
fetch(`/admin/antifroud/externaldbsettings/fetch-table-data/?db_id=${dbId}&table_name=${tableName}`)
|
fetch(`/antifroud/externaldbsettings/fetch-table-data/?db_id=${dbId}&table_name=${tableName}`)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
if (data.status === "success") {
|
if (data.status === "success") {
|
||||||
|
|||||||
Reference in New Issue
Block a user