My Servers Feature

Store your favorite servers to easily select them when connecting
This commit is contained in:
AlexKvazos
2015-04-29 22:21:20 -05:00
parent 971779cf57
commit 4a9e1288b1
10 changed files with 169 additions and 20 deletions
+8 -1
View File
@@ -2,7 +2,14 @@
* Connect Controller
*/
module.exports = function($scope, socket) {
module.exports = function($scope, socket, servers) {
$scope.servers = servers.get();
$scope.select = function(id) {
$scope.ip = servers.select(id).ip;
$scope.port = servers.select(id).port;
};
// connect handler
$scope.connect = function() {