From 44bbefb38d2f973c956050760c07191cb7ad13fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szekeres=20Ba=CC=81lint?= Date: Sun, 13 Jan 2019 10:50:37 +0100 Subject: [PATCH] hasProxy() fixes #57 --- public/assets/js/app.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/public/assets/js/app.js b/public/assets/js/app.js index 11cfdfa..7be32ac 100644 --- a/public/assets/js/app.js +++ b/public/assets/js/app.js @@ -836,6 +836,16 @@ return getSiteValue(site, 'proxy'); }; + $scope.hasProxy = function() { + for (var site in $scope.data.sites) { + if ($scope.isProxy(site)) { + return true; + } + } + + return false; + }; + // ROUTING