delete crypto portfolio settings

This commit is contained in:
Justin 2023-03-17 17:22:10 +08:00 committed by GitHub
parent 2edb5540fd
commit 35564f2d98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -535,6 +535,16 @@ allFeaturesRemoveBtns.map((value, index) => {
body: JSON.stringify(symbol),
});
}
else if ((item.getAttribute("class") == "active") && (index == 1 )){
let symbol = item.innerText;
item.remove();
uploaded_images = [];
uploaded_GIFs = [];
fetch("/deletePortfolioCryptoSettings", {
method: "POST",
body: JSON.stringify(symbol),
});
}
else if (item.getAttribute("class") == "active") {
item.remove();
uploaded_images = [];