From 80e44799c32c7e62bde0e5a8fdb3e4a789378694 Mon Sep 17 00:00:00 2001 From: Gadgetmies Date: Tue, 5 Aug 2025 20:24:42 +0300 Subject: [PATCH] Add a button for deleting a profile point --- public/assets/js/picoreflow.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/assets/js/picoreflow.js b/public/assets/js/picoreflow.js index 82cefc5..be3aca3 100644 --- a/public/assets/js/picoreflow.js +++ b/public/assets/js/picoreflow.js @@ -102,6 +102,12 @@ function updateProgress(percentage) } } +function deletePoint(i) { + console.log('deleting', i) + graph.profile.data.splice(i, 1); + updateProfileTable(); +} + function updateProfileTable() { var dps = 0; @@ -123,7 +129,7 @@ function updateProfileTable() html += ''; html += ''; html += '
'; - html += ' '; + html += ''; } html += '';