From cf2b79d30a9b05fc6346388143aeeb283f5d12d4 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Tue, 8 Apr 2025 23:29:16 +0500 Subject: [PATCH] add loader --- websiteFunctions/static/websiteFunctions/websiteFunctions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/websiteFunctions/static/websiteFunctions/websiteFunctions.js b/websiteFunctions/static/websiteFunctions/websiteFunctions.js index 93f347632..b4a4e8bad 100755 --- a/websiteFunctions/static/websiteFunctions/websiteFunctions.js +++ b/websiteFunctions/static/websiteFunctions/websiteFunctions.js @@ -2631,7 +2631,7 @@ app.controller('listWebsites', function ($scope, $http, $window) { $scope.getFurtherWebsitesFromDB(); $scope.showWPSites = function(domain) { - $scope.loading = false; + $scope.loading = true; console.log('showWPSites called for domain:', domain); // Make sure domain is defined @@ -2656,7 +2656,7 @@ app.controller('listWebsites', function ($scope, $http, $window) { 'X-CSRFToken': getCookie('csrftoken') } }).then(function(response) { - $scope.loading = true; + $scope.loading = false; console.log('Response received:', response); if (response.data.status === 1 && response.data.fetchStatus === 1) { // Find the website in the list and update its properties