From 80aed13d4278e29cfb3ed45e43e114a776c9ac19 Mon Sep 17 00:00:00 2001 From: Bruno Costa Date: Fri, 8 Mar 2024 05:55:09 +0000 Subject: [PATCH] Adds a notice on page once graph has been uploaded, is not a final fix get function from other module to change button #15 --- public/javascripts/vue-apps.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/javascripts/vue-apps.js b/public/javascripts/vue-apps.js index c248503..c7d65f2 100644 --- a/public/javascripts/vue-apps.js +++ b/public/javascripts/vue-apps.js @@ -34,7 +34,9 @@ function mainApp() { contentType: false, data: formData, success: (data, textStatus, jqXHR) => { - console.log(data) + if (data.statusText === "OK") { + displayToast(`Uploaded Graph`, `Graph: ${data.statusText}`) + } } }) },