mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-05-26 07:48:27 +02:00
My Servers Feature
Store your favorite servers to easily select them when connecting
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user