From f13707821e2d3939c9a199d25b80addad1e437dd Mon Sep 17 00:00:00 2001 From: trashbo4t Date: Thu, 23 Aug 2018 17:16:43 -0400 Subject: [PATCH] updated sitesurvey module(#40) This commit adds a throbber when a handshake is being downloaded. --- SiteSurvey/js/module.js | 3 +++ SiteSurvey/module.html | 1 + 2 files changed, 4 insertions(+) diff --git a/SiteSurvey/js/module.js b/SiteSurvey/js/module.js index dba7255..b284367 100644 --- a/SiteSurvey/js/module.js +++ b/SiteSurvey/js/module.js @@ -432,6 +432,7 @@ registerController('SiteSurvey_CaptureController', ['$api', '$scope', '$rootScop $scope.capture = []; $scope.captureOutput = 'Loading...'; $scope.captureDate = 'Loading...'; + $scope.throbber = false; $scope.refreshCapture = (function() { $api.request({ @@ -464,11 +465,13 @@ registerController('SiteSurvey_CaptureController', ['$api', '$scope', '$rootScop }); $scope.downloadCapture = (function(param) { + $scope.throbber = true; $api.request({ module: 'SiteSurvey', action: 'downloadCapture', file: param }, function(response) { + $scope.throbber = false; if (response.error === undefined) { window.location = '/api/?download=' + response.download; } diff --git a/SiteSurvey/module.html b/SiteSurvey/module.html index 31cc6b4..1cb2a8b 100644 --- a/SiteSurvey/module.html +++ b/SiteSurvey/module.html @@ -355,6 +355,7 @@ +