mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-38: Clear cache after creating the connection.
This commit is contained in:
@@ -26,6 +26,7 @@ angular.module('guacQuickConnect').factory('quickConnectService', ['$injector',
|
|||||||
// Required services
|
// Required services
|
||||||
var $http = $injector.get('$http');
|
var $http = $injector.get('$http');
|
||||||
var authenticationService = $injector.get('authenticationService');
|
var authenticationService = $injector.get('authenticationService');
|
||||||
|
var cacheService = $injector.get('cacheService');
|
||||||
|
|
||||||
var service = {};
|
var service = {};
|
||||||
|
|
||||||
@@ -52,6 +53,11 @@ angular.module('guacQuickConnect').factory('quickConnectService', ['$injector',
|
|||||||
params : httpParameters,
|
params : httpParameters,
|
||||||
data : $.param({uri: uri }),
|
data : $.param({uri: uri }),
|
||||||
headers : {'Content-Type': 'application/x-www-form-urlencoded'}
|
headers : {'Content-Type': 'application/x-www-form-urlencoded'}
|
||||||
|
})
|
||||||
|
.success(function connectionCreated() {
|
||||||
|
// Clear connections and users from cache.
|
||||||
|
cacheService.connections.removeAll();
|
||||||
|
cacheService.users.removeAll();
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user