diff --git a/tethysapp/app_store/public/js/main.js b/tethysapp/app_store/public/js/main.js index 6567c42..0560e9b 100755 --- a/tethysapp/app_store/public/js/main.js +++ b/tethysapp/app_store/public/js/main.js @@ -349,7 +349,12 @@ const startInstall = (appName, channel_app, label_app, current_version) => { $(`#${appName}_installer`).prop("disabled", true) $(`#${appName}_installer`).css('opacity', '.5'); installRunning = true - installData["version"] = current_version + installData = { + name: appName, + channel: channel_app, + label: label_app, + version: current_version + } notification_ws.send( JSON.stringify({ @@ -394,6 +399,8 @@ function dismissAddRelatedObjectPopup(win, newId, newRepr) { ) } + + const uninstall = () => { // Hide Elements $("#uninstallingAppNotice").hide() diff --git a/tethysapp/app_store/public/js/mainTable.js b/tethysapp/app_store/public/js/mainTable.js index deff409..fff45a2 100644 --- a/tethysapp/app_store/public/js/mainTable.js +++ b/tethysapp/app_store/public/js/mainTable.js @@ -441,7 +441,6 @@ window.operateEvents = { let n_div = $("#notification") let n_content = $("#notification .lead") let isUsingIncompatible = $(e.target).attr("class").includes("incompatible-app") - let appList = isUsingIncompatible ? incompatibleApps : availableApps n_content.empty(); n_div.modal({ backdrop: "static", keyboard: false }) n_div.modal('show') @@ -451,7 +450,6 @@ window.operateEvents = { // Setup Versions let appName = row['name']; $("#installingAppName").text(appName) - installData["name"] = appName let channel_and_label = get_channel_label_from_id(e); let selectedVersion = e.target.innerText; let app_type = row['app_type']; @@ -495,9 +493,9 @@ window.operateEvents = { }, "click .update": function(e, value, row, index) { - let n_content = $("#update-notices .lead") - // Find The installed App's version - let installedApp = row["name"] + $("#update-app-notice").empty() + $("#update_failMessage").hide() + updateData = {} for(channel in row['installedVersion']){ for(label in row['installedVersion'][channel]){ let htmlCurrentVersion = ''; diff --git a/tethysapp/app_store/public/js/utilities.js b/tethysapp/app_store/public/js/utilities.js index ca80e93..38c8fbc 100644 --- a/tethysapp/app_store/public/js/utilities.js +++ b/tethysapp/app_store/public/js/utilities.js @@ -87,7 +87,6 @@ const sendNotification = (message, n_content) => { type: `restart_server` }) ) - resetInstallStatus() } else if (message == "Uninstall completed. Restarting server...") { inRestart = true notification_ws.send( @@ -127,6 +126,7 @@ function startWS(websocketServerLocation, n_content) { $("#doneInstallButton").show() // Hide Cancel Button $("#mainCancel").hide() + resetInstallStatus() } } // Check if we have any updateData