mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-605: Broadcast guacStatusAction from root scope.
This commit is contained in:
@@ -23,8 +23,8 @@
|
||||
/**
|
||||
* The controller for the status modal.
|
||||
*/
|
||||
angular.module('manage').controller('statusController', ['$scope', '$injector',
|
||||
function statusController($scope, $injector) {
|
||||
angular.module('manage').controller('statusController', ['$scope', '$rootScope', '$injector',
|
||||
function statusController($scope, $rootScope, $injector) {
|
||||
|
||||
var statusModal = $injector.get('statusModal');
|
||||
|
||||
@@ -38,7 +38,7 @@ angular.module('manage').controller('statusController', ['$scope', '$injector',
|
||||
$scope.fireAction = function fireAction(action) {
|
||||
|
||||
// Fire action event
|
||||
var actionEvent = $scope.$broadcast('guacStatusAction', action);
|
||||
var actionEvent = $rootScope.$broadcast('guacStatusAction', action);
|
||||
|
||||
// Close modal unless default is prevented
|
||||
if (!actionEvent.defaultPrevented)
|
||||
|
Reference in New Issue
Block a user