mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUAC-963: Proof-of-concept ManagedClient implementation. Remove guacClientFactory and guacTunnelFactory (functionality replaced by ManagedClient).
This commit is contained in:
@@ -26,32 +26,17 @@
|
||||
angular.module('index').controller('indexController', ['$scope', '$injector',
|
||||
function indexController($scope, $injector) {
|
||||
|
||||
// Get class dependencies
|
||||
// Required types
|
||||
var PermissionSet = $injector.get("PermissionSet");
|
||||
|
||||
// Get services
|
||||
var permissionService = $injector.get("permissionService"),
|
||||
authenticationService = $injector.get("authenticationService"),
|
||||
$q = $injector.get("$q"),
|
||||
$document = $injector.get("$document"),
|
||||
$window = $injector.get("$window"),
|
||||
$location = $injector.get("$location");
|
||||
// Required services
|
||||
var $document = $injector.get("$document");
|
||||
var $location = $injector.get("$location");
|
||||
var $q = $injector.get("$q");
|
||||
var $window = $injector.get("$window");
|
||||
var authenticationService = $injector.get("authenticationService");
|
||||
var permissionService = $injector.get("permissionService");
|
||||
|
||||
/*
|
||||
* Safe $apply implementation from Alex Vanston:
|
||||
* https://coderwall.com/p/ngisma
|
||||
*/
|
||||
$scope.safeApply = function(fn) {
|
||||
var phase = this.$root.$$phase;
|
||||
if(phase === '$apply' || phase === '$digest') {
|
||||
if(fn && (typeof(fn) === 'function')) {
|
||||
fn();
|
||||
}
|
||||
} else {
|
||||
this.$apply(fn);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* The current status notification, or false if no status is currently
|
||||
* shown.
|
||||
|
Reference in New Issue
Block a user