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