From f3b2250e2b781d41aff5db100c813c4207285b66 Mon Sep 17 00:00:00 2001
From: ozdemirozcelik
Date: Fri, 7 Apr 2023 12:35:36 -0700
Subject: [PATCH] bugfix
---
.github/workflows/ci-build.yaml | 4 ++--
static/pairs.js | 5 ++---
static/tickers.js | 4 +++-
templates/setup.html | 28 ++++++++++++++--------------
tests/coverage.svg | 21 ---------------------
5 files changed, 21 insertions(+), 41 deletions(-)
delete mode 100644 tests/coverage.svg
diff --git a/.github/workflows/ci-build.yaml b/.github/workflows/ci-build.yaml
index 8fe24e6..ff7be9b 100644
--- a/.github/workflows/ci-build.yaml
+++ b/.github/workflows/ci-build.yaml
@@ -57,13 +57,13 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- - name: Download coverage badge
+ - name: Checkout
uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: coverage-badge
path: tests
- - name: Push the badge to repo
+ - name: Push new badge to repo
run: |
git config user.name github-actions
git config user.email github-actions@github.com
diff --git a/static/pairs.js b/static/pairs.js
index fe472d9..47a04b9 100644
--- a/static/pairs.js
+++ b/static/pairs.js
@@ -290,7 +290,7 @@ function postSave_pairs() {
// create span element according to pair status
if (jsonResponse.status) {
li.innerHTML = "";
- } else if (pairs_data.pairs[key].status==0) {
+ } else if (jsonResponse.status==0) {
li.innerHTML = "";
} else {
li.innerHTML = "";
@@ -299,9 +299,8 @@ function postSave_pairs() {
li.setAttribute('id', pair_text);
li.appendChild(document.createTextNode(pair_text));
pairlist.insertBefore(li, pairlist.firstChild);
-
// add onclick event listener for each list element
- dynamiclistener_signal(pair_text)
+ dynamiclistener_pair(pair_text)
createPages_pairs();
diff --git a/static/tickers.js b/static/tickers.js
index bb4617e..c194d59 100644
--- a/static/tickers.js
+++ b/static/tickers.js
@@ -277,8 +277,10 @@ function postSave() {
li.setAttribute('id', ticker.value.toUpperCase());
li.appendChild(document.createTextNode(ticker.value.toUpperCase()));
- li.setAttribute("onclick", "Update(this)");
+ // li.setAttribute("onclick", "Update(this)");
stklist.insertBefore(li, stklist.firstChild);
+ // add onclick event listener for each list element
+ dynamiclistener_ticker(ticker.value.toUpperCase())
createPages();
diff --git a/templates/setup.html b/templates/setup.html
index b3bdb50..af467b7 100644
--- a/templates/setup.html
+++ b/templates/setup.html
@@ -207,11 +207,11 @@ Webhook Simulator
-
+
-
+
@@ -224,7 +224,7 @@
Webhook Simulator
-
+
@@ -237,11 +237,11 @@
Webhook Simulator
-
+
-
+
@@ -341,12 +341,12 @@
Update Signal
-
+
-
+
@@ -359,7 +359,7 @@
Update Signal
-
+
@@ -372,7 +372,7 @@
Update Signal
-
+
@@ -430,7 +430,7 @@
Update Signal
-
+
@@ -489,12 +489,12 @@ Add Pair
-
+
-
+
@@ -568,11 +568,11 @@ Update Pair
-
+
-
+
diff --git a/tests/coverage.svg b/tests/coverage.svg
deleted file mode 100644
index 6bfc8fa..0000000
--- a/tests/coverage.svg
+++ /dev/null
@@ -1,21 +0,0 @@
-
-