diff --git a/app/index.html b/app/index.html
index 4a1c7c2..57bc7a0 100755
--- a/app/index.html
+++ b/app/index.html
@@ -67,7 +67,7 @@
- -
+
-
diff --git a/app/js/index.js b/app/js/index.js
index 8ce57a6..b489f40 100755
--- a/app/js/index.js
+++ b/app/js/index.js
@@ -93,13 +93,17 @@ app.controller('GlobalController', function ($scope, $timeout) {
return showError(err)
})
+ $scope.filterPlayers = function filterPlayers (game) {
+ return function (player) {
+ return player.UserId !== '0' && player.UserId !== game.CurrentTurn.UserId
+ }
+ }
+
})
app.controller('GameInfoController', function ($scope, $timeout) {
$scope.timeRemaining = '9000 years'
- $scope.filterPlayers = filterPlayers($scope.selectedGame)
-
$scope.$on('selectedGameWasUpdated', () => {
const timeRemaining = moment($scope.selectedGame.CurrentTurn.Expires).fromNow(true)
if (!timeRemaining) {
@@ -135,9 +139,7 @@ app.controller('GameInfoController', function ($scope, $timeout) {
})
-app.controller('GameListController', function ($scope) {
- return $scope.filterPlayers = filterPlayers
-})
+app.controller('GameListController', function ($scope) {})
app.controller('SettingsController', function ($scope) {
$scope.settings = gmr.getSettings()
@@ -166,9 +168,3 @@ app.controller('SettingsController', function ($scope) {
$scope.settings = gmr.getSettings()
}
})
-
-function filterPlayers (game) {
- return function (player) {
- return player.UserId !== '0' && player.UserId !== game.CurrentTurn.UserId
- }
-}